mirror of
https://github.com/brl/mutter.git
synced 2025-02-16 13:24:09 +00:00
![Benjamin Berg](/assets/img/avatar_default.png)
In non-systemd managed session we are unable to start services on demand. Instead, gnome-session will start everything at login time, including any X11 related service (i.e. gsd-xsettings). However, in order to start gsd-xsettings, Xwayland needs to be started already. Otherwise it will connect to GNOME_SETUP_DISPLAY and login will hang at that point. Fix this by detecting whether mutter is running in a systemd unit. If it is, we assume that we are systemd managed and the machinery to start the services works fine. If not, we assume that the session management may unconditionally try to start X11 related services and Xwayland must be started in order to not block this. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1771>