PDA

View Full Version : GDM will not remember preferred root desktop session



upnort
26th July 2015, 09:04 PM
I have been using LightDM for a long while. Today I decided to give GDM a shot.

When logging in as root, GDM always defaults to GNOME, despite AccountsServices correctly noting the desktop preference. The preferred session for non-root accounts is remembered and correctly launched.

Is there a way to fix this quirk?

Thanks.

Request: Please spare me the usual litany about running X as root. :)

lightman47
26th July 2015, 10:06 PM
Litany spared.

upnort
29th August 2015, 02:37 AM
Is there a way to fix this quirk?
Help anybody?

DBelton
29th August 2015, 03:27 AM
What happens if you create a /root/.dmrc file with your desktop listed?

.dmrc file contents:


[Desktop]
Session=xfce


remember to create file as root :)

Edit:

scratch that suggestion.. GDM hasn't read ~/.dmrc in quite awhile now.


What if you create a file

/var/lib/AccountsService/users/root with the desktop in it?



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

upnort
29th August 2015, 05:14 AM
/var/lib/AccountsService/users/root with the desktop in it?
Good suggestion. One of the first things I tried. :)