Está tudo lá (exceto a parte com salvar as configurações atuais para esse arquivo de texto):
On startup,
dconf
consults theDCONF_PROFILE
environment variable. If set,dconf
will attempt to open the named profile, aborting if that fails. If the environment variable is not set, it will attempt to open the profile named "user" and if that fails, it will fall back to an internal hard-wired configuration.dconf
stores its profiles in text files.DCONF_PROFILE
can specify a relative path to a file in/etc/dconf/profile/
, or an absolute path (such as in a user's home directory).
e
A "
service-db
" line instructs dconf to place the binary database file for the user database inXDG_RUNTIME_DIR
. Since this location is not persistent, the rest of the line instructsdconf
how to store the database persistently. A typical line isservice-db:keyfile/user
, which tellsdconf
to synchronize the binary database with a plain text keyfile in$XDG_CONFIG_HOME/dconf/user.txt
. The synchronization is bi-directional.
Portanto, o arquivo de texto em questão é $XDG_CONFIG_HOME/dconf/user.txt
, que geralmente corresponde a ~/.config/dconf/user.txt
.
Primeiro, salve suas configurações atuais no arquivo (obviamente, isso não é necessário para um novo usuário):
dconf dump / > ~/.config/dconf/user.txt
adicione a linha service-db
ao perfil (como root):
mkdir -p /etc/dconf/profile
printf '%s\n' 'service-db:keyfile/user' > /etc/dconf/profile/user
Agora, reinicie sua sessão e os dois arquivos estarão em sincronia.