如何从命令行运行 mir 应用程序?

如何从命令行运行 mir 应用程序?

我想从 Ubuntu Touch 手机上的本地终端运行 webapp-container,或者从 ssh 会话运行它。我正在寻找 DISPLAY 环境变量之类的东西来设置它,以告诉它将用户界面放在哪里,但这是 MIR,而不是 X,所以我不能这样做。有没有办法启动 Mir 客户端并告诉他们他们的服务器是什么?

phablet@ubuntu-phablet:~$ webapp-container http://www.ubuntu.com
UbuntuClientIntegration: connection to Mir server failed. Check that a Mir server is
running, and the correct socket is being used and is accessible. The shell may have
rejected the incoming connection, so check its log file
Aborted (core dumped)

我是否必须采取一些措施才能使 Mir 插座可访问?

答案1

Mir 似乎使用了MIR_SOCKET环境变量,我在 Ubuntu 手机(模拟)上发现它位于/var/run/mir_socket

export MIR_SOCKET=/var/run/mir_socket

你就可能准备好了。

答案2

一种快速而肮脏的方法就是将不受限制的应用程序的桌面文件传递给它(该应用程序无法运行),例如

webapp-container http://www.ubuntu.com --desktop_file_hint=/usr/share/applications/webbrowser-app.desktop

相关内容