Ubuntu – How to run a mir application from a command line

mirphoneubuntu-touch

I want to run webapp-container from the local terminal on an Ubuntu Touch phone, or run it from an ssh session into the phone. I am looking for something like the DISPLAY environment variable to set to tell it where to put the user interface, but this is MIR, not X, so I can't do that. Is there a way to start Mir clients and tell them what their server is?

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)

Do I have to do something to make the Mir socket accessible?

Best Answer

Mir appears to use the MIR_SOCKET environment variable, which I found on an Ubuntu phone (emulated) to be in /var/run/mir_socket.

export MIR_SOCKET=/var/run/mir_socket

and you might be set.

Related Question