Skip to content

launcher: Use $XDG_SESSION_ID if available

Sebastian Wick requested to merge swick/mutter:xdg-session-id into main

In some cases mutter is started in the user scope from a TTY (for example using toolbox). Using sd_pid_get_session fails because it's not in the session scope so it falls back to the primary session (sd_uid_get_display). We want to start mutter on the TTY we started mutter on however. Instead of relying on the scope to figure out the correct session we first look at $XDG_SESSION_ID which is set by systemd_pam.so.

Merge request reports