Xmir without Libertine
-
Hi,
how to run Xmir properly without Libertine?
$ Xmir -debug -mirSocket /run/mir_socket -rootless -flatten -neverclose ARM architecture: Defaulting to software mode because glamor is not stableotless XMir initialized with 4 visuals: Visual id 0x28: ff ff00 ff0000, 24 planes Visual id 0x29: ff ff00 ff0000, 24 planes Visual id 0x2a: ff ff00 ff0000, 32 planes Visual id 0x2b: ff ff00 ff0000, 32 planes Realize ROOT window 0x5595c69400 id=0x268 "": 720x1560 +0+0 parent=(nil) depth=24 redir=0 type=0 class=1 visibility=3 viewable=1 override=0 _NET_WM_WINDOW_TYPE=0() WM_TRANSIENT_FOR=(nil) WM_HINTS=<none>
this way it waits for connections, but when I run
xeyes
:$ DISPLAY=:0 xeyes Warning: locale not supported by C library, locale unchanged XIO: fatal IO error 2 (No such file or directory) on X server ":0" after 58 requests (58 known processed) with 10 events remaining.
Xmir
fails:Realize window 0x5595e427f0 id=0x20000a "xeyes": 150x100 +1+1 parent=0x5595c69400 depth=24 redir=1 type=0 class=1 visibility=3 viewable=1 override=0 _NET_WM_WINDOW_TYPE=0() WM_TRANSIENT_FOR=(nil) WM_HINTS={flags=0x27,input=True} Aborted
-
desktop_file_hint
did the trick, can be taken from the available ones if you do not care much:Xmir -mirSocket "$XDG_RUNTIME_DIR/mir_socket" --desktop_file_hint=dialer-app -debug -rootless
also note
mir_socket
is from phablet run-directoryPS
it depends on application, butxeyes
in particular is better without-rootless
-
You can add these in the desktop file.
X-Ubuntu-Touch=true X-Ubuntu-XMir-Enable=true
Other libertine integrations most likely won't work though such as content hub and maybe keyboard too.
-
@kugiigi which desktop file? I literally run "Xmir" and "xeyes" binaries as shown
-
@ygrex Oh somehow, I assumed you're trying to do it for an app. Not sure how to do it via CLI.
-
desktop_file_hint
did the trick, can be taken from the available ones if you do not care much:Xmir -mirSocket "$XDG_RUNTIME_DIR/mir_socket" --desktop_file_hint=dialer-app -debug -rootless
also note
mir_socket
is from phablet run-directoryPS
it depends on application, butxeyes
in particular is better without-rootless
-
-
was lucky to find the parameter on https://askubuntu.com/questions/760142/how-to-install-ubuntu-sdk-on-ubuntu-touch
for some reason
Xmir -help
does not show the parameter, neither it looks like anything important