Red Hat Training
A Red Hat training course is available for Red Hat Enterprise Linux
12.2. Customizing Default Favorite Applications
Favorite applications are those visible on the GNOME Shell dash in the
Activities Overview. You can use
dconfto 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
You can set the default favorite applications for an individual user by modifying their user database file found in
~/.config/dconf/user. The following sample uses
dconfto 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
# This line allows the user to change the default favorites later user-db:user
Example 12.4. Contents of
# Set gedit, terminal and nautilus as default favorites [org/gnome/shell] favorite-apps = [
You can also lock down the above settings to prevent users from changing them. See Section 9.5.1, “Locking Down Specific Settings” for more information.
12.2.2. Setting the Same Favorite Applications for All Users
In order to have the same favorites for all users, you must modify system database files using
dconfkeyfiles. The following sample edits the
dconfprofile 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
user-db:user # This line defines a system database called first_floor system-db:first_floor
Settings from the
userdatabase file will take precedence over the settings in the
first_floordatabase file, but locks introduced in the
first_floordatabase 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
# This sample sets gedit, terminal and nautilus as default favorites # for all users in the first floor [org/gnome/shell] favorite-apps = [
Incorporate your changes into the system databases by running the
Users must log out and back in again before the system-wide settings take effect.