Chapter 3. Setting a default desktop session for all users
You can configure a default desktop session for all users that have not logged in yet.
If a user logs in by using a different session than the default, their selection persists to their next login.
Procedure
To apply the default desktop session for ordinary users:
Copy the configuration file template for ordinary users:
# cp /usr/share/accountsservice/user-templates/standard \ /etc/accountsservice/user-templates/standard-
Edit the new
/etc/accountsservice/user-templates/standardfile. -
On the
Session=line, add the name of the session you want to set as the default, for example,gnome.
To apply the default desktop session to administrator users (members of the
wheelorsudogroups), create and configure the administrator template:Copy the administrator template:
# cp /usr/share/accountsservice/user-templates/administrator \ /etc/accountsservice/user-templates/administrator-
Edit the new
/etc/accountsservice/user-templates/administratorfile. -
On the
Session=line, add the name of the default session for administrators, for example,gnome.
Optional: To configure an exception to the default session for a certain user, follow these steps:
Copy the template file to
/var/lib/AccountsService/users/user-name:# cp /usr/share/accountsservice/user-templates/standard \ /var/lib/AccountsService/users/user-name-
In the new file, replace variables such as
${USER}and${ID}with the user values. -
On the
Session=line, add the name of the session you want to set as default for that user, for example,gnome.