Changing options passed by gdm when starting Xwayland and Xorg

Is there a way to pass options from custom.conf to Xwayland and Xorg that are started by gdm ?

I need the +byteswappedclients option passed to Xwayland but the only way I can see to do this is to make a man-in-the-middle shell script after renaming the Xwayland binary. This is a problem when the package manager updates Xwayland.

I need to add the option to Xorg -listen tcp

$ gsettings set org.gnome.mutter.wayland xwayland-allow-byte-swapped-clients true

in the user session should do the job, or use a dconf override to change the default for all users.

1 Like

Yes, this works for gnome-shell but not for other desktops (like cinnamon).
It is the desktop that starts the Xwayland process so I guess that its not really a gdm responsibility. Thanks for the answer.