Ryan Lortie
desrt@desrt.ca 2012
Jana Švárová
jana.svarova@gmail.com
Petr Kovar
pknbe@volny.cz 2019
Detailed information about profile and profile selection.
Jaume Jorba
jaume.jorba@gmail.com 2019

# Perfils

A profile is a list of configuration databases. The first database in a profile is the write-to database and the remaining databases are read-only. Each of the system databases is generated from a keyfile directory. Each keyfile directory contains one or more keyfiles. Each keyfile contains at least one dconf path and one or more keys and the corresponding values.

Les parelles de claus que hi ha al perfil dconf sobreescriurà la configuració predeterminada tret que hi hagi un problema amb el valor que hàgiu definit.

Normalment voldreu que un perfil dconf consistent en una base de dades d'usuari i com a mínim una de sistema. El perfil mostra una base de dades per línia.

La primera línia d’un perfil és la base de dades a la qual s’escriuen els canvis. Normalment és `user-db:user`. userés el nom de la base de dades d'usuari que normalment es pot trobar a ~/.config/dconf.

A `system-db` line specifies a system database. These databases are found in /etc/dconf/db/.

# Exemple de perfil

user-db:user system-db:local system-db:site

Configuring a single user and multiple system databases allows for layering of preferences. Settings from the `user` database file take precedence over the settings in the `local` database file, and the `local` database file in turn takes precedence over the `site` database file.

However, the order of precedence for locks is reversed. Locks introduced in the `site` or `local` database files take priority over those present in `user`.

El perfil dconf d'una sessió es determina a l'inici de la sessió, pel que els usuaris s'hauran de tancar i iniciar la sessió per a que s'apliqui un nou perfil dconf.

For more information, see the dconf(7) man page.

# Seleccionar un perfil

On startup, dconf consults the DCONF_PROFILE environment variable. The variable can specify a relative path to a file in /etc/dconf/profile/, or an absolute path, for example, to the user's home directory.

If the environment variable is set, dconf attempts to open the named profile and aborts if that fails. If the variable is not set, dconf attempts to open the profile named “user”. If that fails, it will fall back to an internal hard-wired configuration.

For more information, see the dconf(7) man page.