![](/img/trans.png)
[英]How do you run Chrome while selenium headless script is executing on mac?
[英]How do I run LibreOffice --headless on a Mac when connecting over ssh?
我正在使用soffice --headless
測試LibreOffice擴展。 這在Linux上效果很好,但是當我使用SSH進入macOS測試服務器時,它根本無法啟動,只是掛在
_RegisterApplication(), FAILED TO establish the default connection to
the WindowServer, _CGSDefaultConnection() is NULL.
有沒有辦法解決? 我看到了對launchd
引用,例如https://developer.apple.com/library/content/documentation/MacOSX/Conceptual/BPMultipleUsers/Concepts/SystemContexts.html,但它們似乎需要對LibreOffice本身進行更改。
irc.freenode.net上#libreoffice-dev
的好人說,一種解決方法可能是某人必須至少登錄一次圖形UI才能起作用。 通過遵循,跟隨,依照
https://help.ubuntu.com/community/AppleRemoteDesktop
(嗯,屏幕共享已經在我的情況下進行了),只需使用remmina
登錄,我就能運行soffice --headless
並在soffice --headless
測試擴展:-)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.