Ce contenu n'est pas disponible dans la langue sélectionnée.
Chapter 9. Setting a default desktop session for all users
You can configure a default desktop session that is preselected for all users that have not logged in yet.
If a user logs in 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# cp /usr/share/accountsservice/user-templates/standard \ /etc/accountsservice/user-templates/standardCopy to Clipboard Copied! Toggle word wrap Toggle overflow -
Edit the new
/etc/accountsservice/user-templates/standardfile. -
On the
Session=gnomeline, replacegnomewith the session that you want to set as the default.
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# cp /usr/share/accountsservice/user-templates/administrator \ /etc/accountsservice/user-templates/administratorCopy to Clipboard Copied! Toggle word wrap Toggle overflow -
Edit the new
/etc/accountsservice/user-templates/administratorfile. -
Replace the value of
Session=gnomewith the session that you want to set as the default for administrator users.
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# cp /usr/share/accountsservice/user-templates/standard \ /var/lib/AccountsService/users/user-nameCopy to Clipboard Copied! Toggle word wrap Toggle overflow -
In the new file, replace variables such as
${USER}and${ID}with the user values. -
Replace the value of
Session=gnomewith the session that you want to set as the default for that user.