Ce contenu n'est pas disponible dans la langue sélectionnée.
12.2. Customizing Default Favorite Applications
Activities Overview
. You can use dconf
to set the favorite applications for an individual user, or to set the same favorite applications for all users.
12.2.1. Setting Different Favorite Applications for Individual Users Copier lienLien copié sur presse-papiers!
~/.config/dconf/user
. The following sample uses dconf
to set gedit, Terminal, and Nautilus as the default favorites for a user. The example code allows users to modify the list later, if they wish to do so.
Example 12.3. Contents of /etc/dconf/profile
:
This line allows the user to change the default favorites later
# This line allows the user to change the default favorites later
user-db:user
Example 12.4. Contents of ~/.config/dconf/user
:
Set gedit, terminal and nautilus as default favorites
# Set gedit, terminal and nautilus as default favorites
[org/gnome/shell]
favorite-apps = ['gedit.desktop', 'gnome-terminal.desktop', 'nautilus.desktop']
Note
12.2.2. Setting the Same Favorite Applications for All Users Copier lienLien copié sur presse-papiers!
dconf
keyfiles. The following sample edits the dconf
profile and then create a keyfile to set the default favorite applications for all employees in the first floor of an organization.
Example 12.5. Contents of /etc/dconf/profile
:
user-db:user # This line defines a system database called first_floor system-db:first_floor
user-db:user
# This line defines a system database called first_floor
system-db:first_floor
Note
user
database file will take precedence over the settings in the first_floor
database file, but locks introduced in the first_floor
database file will take priority over those present in user
. For more information about locks, see Section 9.5.1, “Locking Down Specific Settings”.
Example 12.6. Contents of /etc/dconf/db/first_floor.d/00_floor1_settings
:
This sample sets gedit, terminal and nautilus as default favorites for all users in the first floor
# This sample sets gedit, terminal and nautilus as default favorites
# for all users in the first floor
[org/gnome/shell]
favorite-apps = ['gedit.desktop', 'gnome-terminal.desktop', 'nautilus.desktop']
dconf update
command.