GNOME Bugzilla – Bug 769644
wayland session does not process /etc/X11/Xresources ~/.Xresources
Last modified: 2021-06-14 18:22:29 UTC
As discussed in bug 36660 gnome-session should do the equivalent of: xrdb -merge /etc/X11/Xresources xrdb -merge ~/.Xresources After starting Xwayland so that X11 apps started under a Wayland gnome3 session honor the settings from those files.
The more I think about it, the more I think that Xwayland should do it. Do you have any objections to that? What about you Olivier ?
Having Xwayland do this would be fine with me, but that is more Olivier's call to make then mine.
Xwayland is an X server, as such I don't see it loading the client resources database itself nor rely on xrdb, I don't see any other DDX doing that. Historically, this was done by gnome-settings-daemon but the xrdb plug-in was dropped circa GNOME 2.91. I am probably missing some background here (can't find the bug referenced in comment 0 neither in bugzilla.gnome.org nor bugs.freedesktop.org), like how does this work in regular X GNOME session, and why do we need to do any different in Wayland session (apart maybe that Xwayland is started by mutter/gnome-shell) What are the pros and cons of having it started from the one of the X clients such as gnome-session or gnome-settings-daemon?
Sorry, the bug in comment 0 should have been bug 736660.
(In reply to Olivier Fourdan from comment #3) > Xwayland is an X server, as such I don't see it loading the client resources > database itself nor rely on xrdb, I don't see any other DDX doing that. Well, it's a local X server though. You aren't going to do Xwayland -query or something, so it's a bit of a special case.
(In reply to Ray Strode [halfline] from comment #5) > Well, it's a local X server though. You aren't going to do Xwayland -query > or something, so it's a bit of a special case. Sure it's a bit of a special case, but still, I am not convinced this is up to Xwayland to load the xrdb. Besides, other desktops such as KDE may load the xrdb database on their own (I haven't really checked thoroughly, but startkde from plasma-workspace spawns xrdb apparently). Maybe we could think of an alternative, like using a wrapper script or launcher program similar to what xinit does? - Write an Xwayland init/wrapper script that takes care or running the requested X clients at startup - Make the command to run Xwayland configurable in mutter/gnome-shell (as it is in weston for example).
running a wrapper is fine with me, but why would it be configurable? Wouldn't mutter just always runs the wrapper ?
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org. As part of that, we are mass-closing older open tickets in bugzilla.gnome.org which have not seen updates for a longer time (resources are unfortunately quite limited so not every ticket can get handled). If you can still reproduce the situation described in this ticket in a recent and supported software version of gnome-session, then please follow https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines and create a new ticket at https://gitlab.gnome.org/GNOME/gnome-session/-/issues/ Thank you for your understanding and your help.