View Single Post
  #4  
Old 4th February 2015, 07:59 PM
upnort Offline
Registered User
 
Join Date: Oct 2014
Location: milky way
Posts: 556
Re: GDM Default Session

A global default session can be defined in /etc/gdm/custom.conf:

[daemon]
DefaultSession=mate.desktop

That said, GDM stores each user's last session in /var/lib/AccountsService/users/$USER:

[User]
Language=en_US.utf8
XSession=mate
SystemAccount=false

I do not know of a way to configure GDM to ignore the last session used and force using a desired default with each new login. A work-around would be to run a PostSession script to always modify /var/lib/AccountsService/users/$USER.

In /etc/gdm/PostSession/Default, try adding something like this:

sed -i 's|^XSession=.*|XSession=mate|' /var/lib/AccountsService/users/$USER
Reply With Quote