Skip to content

platforms: mirserver: Set X11's DISPLAY environment variable

Alfred Neumayer requested to merge personal/fredldotme/passx11display into main

lomiri-app-launch has no API yet for setting the X11 display variable. What it does instead is copy the environment variable from the running shell environment and copy it into the to-be-launched systemd user session.

For lomiri-app-launch to find this variable we need to set it after Mir is up and running, to not confuse its internals on whether to try and connect the shell to an existing X server (using Mir's X11 render platform).

This fixes starting X11-only apps from Lomiri's app drawer.

Merge request reports