簡體   English   中英

通過ssh連接時,如何在Mac上運行LibreOffice --headless?

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM