【问题标题】:How do I run LibreOffice --headless on a Mac when connecting over ssh?通过 ssh 连接时,如何在 Mac 上运行 LibreOffice --headless?
【发布时间】:2018-07-27 10:30:37
【问题描述】:

我正在使用soffice --headless 从命令行测试 LibreOffice 扩展。这在 Linux 上效果很好,但是当我 ssh 进入我们的 macos 测试服务器时,它根本没有启动,只是挂起

_RegisterApplication(), FAILED TO establish the default connection to 
the WindowServer, _CGSDefaultConnection() is NULL.

有没有办法解决这个问题?我看到了对 launchdhttps://developer.apple.com/library/content/documentation/MacOSX/Conceptual/BPMultipleUsers/Concepts/SystemContexts.html 之类的引用,但它们似乎需要对 LibreOffice 本身进行更改。

【问题讨论】:

    标签: macos ssh libreoffice headless launchd


    【解决方案1】:

    irc.freenode.net 上#libreoffice-dev 的好心人说,一种解决方法可能是有人必须至少登录一次图形用户界面才能使其工作。通过关注

    https://help.ubuntu.com/community/AppleRemoteDesktop

    (好吧,在我的情况下,屏幕共享已经开启)并且只需使用remmina 登录,我就能够运行soffice --headless 并在macos 上测试扩展:-)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-04-28
      • 1970-01-01
      • 2012-05-22
      • 1970-01-01
      • 2017-09-28
      • 2011-02-15
      相关资源
      最近更新 更多