Skip to content

Load X11 modules more selectively on GNOME

With GNOME attempting to start Xwayland more selectively, the Pulseaudio XDG autostart desktop file trying to load X11 modules get a bit in the middle by triggering X11 interaction early during session initialization.

This MR tries to improve the loading of X11-specific modules on GNOME, while keeping other environments unchanged:

  • The pulseaudio.desktop XDG autostart file is added X-GNOME-HiddenUnderSystemd, to avoid its execution on systemd-managed GNOME sessions, the following 2 methods will be used there.
  • A new systemd user session file is used for X11 GNOME sessions.
  • For Wayland GNOME sessions, a /etc/xdg/Xwayland-session.d script is installed, these scripts are ensured to run during Xwayland initialization.

Worth noting, these commits only affect the loading of X11 modules, not daemon startup itself.

Fixes: #693 (closed)

Edited by Carlos Garnacho

Merge request reports