Aruna Sankaranarayanan
aruna.evam@gmail.com
Petr Kovar
pknbe@volny.cz 2019
Customize the default favorites in the Activities overview.
Jaume Jorba
jaume.jorba@gmail.com 2019

# Set default favorite applications

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.

# Establiu aplicacions favorites diferents per usuaris diferents

You can set the default favorite applications for each user by modifying their user database file found in ~/.config/dconf/user. The following example snippet uses dconf to set gedit, Terminal and Files (nautilus) as default favorites for a user. The example code allows users to modify the list later, if they wish to do so.

## Contingut de /etc/dconf/profile:

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

## Contingut de ~/.config/dconf/user:

# Set gedit, terminal and nautilus as default favorites [org/gnome/shell] favorite-apps = ['gedit.desktop', 'gnome-terminal.desktop', 'nautilus.desktop']

Es pot bloquejar la configuració per evitar que els usuaris la canviïn.

# Estableix la mateixa aplicació per defecte per a tots els usuaris

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.

## Set the favorite applications

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

## Contingut de /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']

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.db/locks/favorite-apps

# Lock default favorite applications /org/gnome/shell/favorite-apps