Gekkio / gnome-session-xmonad

Ubuntu package for Gnome + XMonad session files
GNU General Public License v2.0
98 stars 10 forks source link

gsd-xsettings improves font rendering, not auto running for some reason #13

Open jgarvin opened 4 years ago

jgarvin commented 4 years ago

I'm using gnome-session-xmonad on Ubuntu 19.10. My fonts looked much uglier than they do in the default Ubuntu session, so I did some digging. I found the various daemons runnning:

ll  22751 14255  0 13:36 ?        00:00:00 /usr/lib/gnome-settings-daemon/gsd-a11y-settings
ll  22752 14255  0 13:36 ?        00:00:00 /usr/lib/gnome-settings-daemon/gsd-housekeeping
ll  22753 14255  0 13:36 ?        00:00:00 /usr/lib/gnome-settings-daemon/gsd-sharing
ll  22754 14255  0 13:36 ?        00:00:00 /usr/lib/gnome-settings-daemon/gsd-screensaver-proxy
ll  22756 14255  0 13:36 ?        00:00:00 /usr/lib/gnome-settings-daemon/gsd-media-keys
ll  22760 14255  0 13:36 ?        00:00:00 /usr/lib/gnome-settings-daemon/gsd-keyboard
ll  22771 14255  0 13:36 ?        00:00:00 /usr/lib/gnome-settings-daemon/gsd-color
ll  22773 14255  0 13:36 ?        00:00:00 /usr/lib/gnome-settings-daemon/gsd-datetime
ll  22775 14255  0 13:36 ?        00:00:00 /usr/lib/gnome-settings-daemon/gsd-print-notifications
ll  22776 14255  0 13:36 ?        00:00:00 /usr/lib/gnome-settings-daemon/gsd-smartcard
ll  22777 14255  0 13:36 ?        00:00:00 /usr/lib/gnome-settings-daemon/gsd-wacom
ll  22778 14255  0 13:36 ?        00:00:00 /usr/lib/gnome-settings-daemon/gsd-wwan
ll  22785 14255  0 13:36 ?        00:00:00 /usr/lib/gnome-settings-daemon/gsd-sound
ll  22787 14255  0 13:36 ?        00:00:00 /usr/lib/gnome-settings-daemon/gsd-rfkill
ll  22788 14255  0 13:36 ?        00:00:00 /usr/lib/gnome-settings-daemon/gsd-power
ll  22837 14255  0 13:36 ?        00:00:00 /usr/lib/gnome-settings-daemon/gsd-printer

Notice that gsd-xsettings is missing. So I manually ran /usr/lib/gnome-settings-daemon/gsd-xsettings and immediately everything looked better. So then I checked the code checked in here and my local /usr/share/gnome-session/sessions/gnome-xmonad.session, but they both contain the XSettings at the end:

[GNOME Session]
Name=GNOME + XMonad
RequiredComponents=xmonad;gnome-flashback;gnome-panel;org.gnome.SettingsDaemon.A11ySettings;org.gnome.SettingsDaemon.Color;org.gnome.SettingsDaemon.Datetime;org.gnome.SettingsDaemon.Housekeeping;org.gnome.SettingsDaemon.Keyboard;org.gnome.SettingsDaemon.MediaKeys;org.gnome.SettingsDaemon.Power;org.gnome.SettingsDaemon.PrintNotifications;org.gnome.SettingsDaemon.Rfkill;org.gnome.SettingsDaemon.ScreensaverProxy;org.gnome.SettingsDaemon.Sharing;org.gnome.SettingsDaemon.Smartcard;org.gnome.SettingsDaemon.Sound;org.gnome.SettingsDaemon.Wacom;org.gnome.SettingsDaemon.XSettings;

Maybe there's an off by 1 in the parser for this so the last entry doesn't startup? Happy to provide more details if you have commands to run.

Gekkio commented 4 years ago

On my home desktop running 19.10, gsd-xsettings starts normally, so I think this is probably some configuration issue or gnome bug instead of a systematic problem in gnome-session-xmonad or gnome's parser. Unfortunately I don't even know where to start debugging this :frowning:

In my experience, using alternative sessions like gnome-session-xmonad often triggers various gnome or ubuntu bugs that don't happen with the "standard" sessions. For example, at the moment my work laptop running 19.10 has some kind of problem where the desktop background is not drawn correctly if I switch between workspaces and the previous contents of the screen are retained instead. This is fixed by opening dconf-editor, and toggling desktop background boolean config twice (!!). So every time I log in on that computer, I open dconf-editor and do this magic trick...I've also had similar strange issues in the past on several machines, and nuking my home folder has usually helped if nothing else has worked.

If you want to debug this problem a bit more, try creating a new user, setting up your xmonad config appropriately in that user's home folder, and logging in. With a fresh home folder you might have different results. It's not really a solution, but might give us more info :smile: