Valores por omisións personalizados para as preferencias a nivel de sistema
System-wide default settings can be set by providing a default for a key in a dconf profile. These defaults can be overridden by the user.
Estabelecer un valor por omisión
To set a default for a key, the user profile must exist and the value for the key must be added to a dconf database.
Un exemplo que demostra como configurar o fondo de escritorio predeterminado
-
Crear o perfíl user:
/etc/dconf/profile/user
user-db:user system-db:locallocal é o nome dunha base de datos dconf.
-
Cree un ficheiro de chaves para a base de datos local que contén as preferencias por omisión:
/etc/dconf/db/local.d/01-background
# ruta de dconf [org/gnome/desktop/background] # nomes de chaves de dconf e os seus valores correspondentes picture-uri='file:///usr/local/share/backgrounds/wallpaper.jpg' picture-options='scaled' primary-color='000000' secondary-color='FFFFFF' -
Actualizar a base de datos do sistema:
# dconf update
When the user profile is created or changed, the user will need to log out and log in again before the changes will be applied.
If you want to avoid creating the user profile, you can use the dconf command-line utility to read and write individual values or entire directories from and to a dconf database. For more information, see the dconf(1) man page.