Ορισμός προεπιλεγμένων αγαπημένων εφαρμογών

Favorite applications are those visible on the GNOME Shell dash. You can use dconf to set favorite applications for one user, or to set the same favorite applications for all users. For both cases, you must first edit the dconf profile found in /etc/dconf/profile/user.

Set different favorite applications for different users

You can set the default favorite applications for each user by modifying their user database via gsettings. The following example command sets Text Editor, Terminal and Files (nautilus) as default favorites for a user.

Περιεχόμενα του /etc/dconf/profile/user:

# This line allows the user to change the default favorites later
user-db:user

Set Text Editor, Terminal and Files as default favorites:

# gsettings set org.gnome.shell favorite-apps "['org.gnome.TextEditor.desktop', 'org.gnome.Terminal.desktop', 'org.gnome.Nautilus.desktop']"

You can also lock down the above settings to prevent users from changing them.

Set the same favorite applications for all users

In order to have the same favorites for all users, you must modify system database files using dconf keyfiles. The following steps edit the dconf profile and then create a keyfile to set default favorite applications for all users in the local configuration database.

Ορισμός αγαπημένων εφαρμογών

  1. Create the user profile which contains the following lines:

    /etc/dconf/profile/user

    user-db:user
    system-db:local

    local είναι το όνομα της βάσης δεδομένων dconf.

  2. Create the directory /etc/dconf/db/local.d/ if it does not already exist.

  3. Create the key file /etc/dconf/db/local.d/00-favorite-apps to provide information for the local database.

    Περιεχόμενα του /etc/dconf/db/local.d/00-favorite-apps:

    # Snippet sets gedit, terminal and nautilus as default favorites for all users
    [org/gnome/shell]
    favorite-apps = ['gedit.desktop', 'gnome-terminal.desktop', 'nautilus.desktop']
  4. To prevent the user from overriding these settings, create the file /etc/dconf/db/local.d/locks/favorite-apps with the following content:

    /etc/dconf/db/local.d/locks/favorite-apps

    # Lock default favorite applications
    /org/gnome/shell/favorite-apps
  5. Ενημέρωση των βάσεων δεδομένων του συστήματος:

    # dconf update
  6. Users must log out and back in again before the system-wide settings take effect.