1

I upgraded from 16.04 to 18.04 and can no longer choose my custom ~/.xsession in the session menu in gdm3 or lightdm. If I use xdm as the login manager my ~/.xsession runs, but then I have other problems related to Gnome (my custom ~/.xsession runs Gnome + XMonad).

How can I use my custom ~/.xsession with gdm3 or lightdm?

2

I can run ~/.xsession with gdm by creating /usr/share/xsessions/xsession.desktop containing

[Desktop Entry]
Name=XSession
Comment=This session uses the custom xsession file
Exec=/etc/X11/Xsession
Type=Application
DesktopNames=GNOME-Flashback;GNOME;
X-Ubuntu-Gettext-Domain=gnome-flashback

and then selecting XSession from the sessions menu when I log in.

(I wasn't able to find a package containing such a file, but it's easy to create it yourself once you know what to do).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.