startx failed, get "Oh no, something has gone wrong"
When run command startx, because there is no environment variable XDG_SESSION_TYPE, the gnome-session falls back to non-systemd startup procedure.
gnome-session will start all the applications in Entry RequiredComponent= of file '/usr/share/gnome-session/sessions/gnome.session'. These applications include org.gnome.SettingsDaemon.XSettings.desktop
.
But because systemd user service gsd-xsettings.service
starts up, org.gnome.SettingsDaemon.XSettings.desktop
starts unsuccessfully, then gnome-session crashes and we get error "Oh no, something has gone wrong".
For my understanding, gsd-xsettings.service
should not start in non-systemd startup procedure like other gsd-xxx.service.
How to handle gsd-xsettings.service
in non-systemd startup procedure?