Default session in GDM
Created by: philmmanjaro
We are currently don't set the default session in GDM.
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