<?xml version="1.0" encoding="utf-8"?>
<page xmlns="http://projectmallard.org/1.0/" xmlns:its="http://www.w3.org/2005/11/its" type="topic" style="task" id="dconf-profiles" xml:lang="pt-BR">

  <info>
    <link type="guide" xref="setup"/>
    <link type="seealso" xref="dconf-custom-defaults"/>
    <link type="seealso" xref="dconf"/>
    <revision pkgversion="3.30" date="2019-02-22" status="incomplete"/>

    <credit type="author copyright">
      <name>Ryan Lortie</name>
      <email>desrt@desrt.ca</email>
      <years>2012</years>
    </credit>
    <credit type="editor">
      <name>Jana Švárová</name>
      <email>jana.svarova@gmail.com</email>
    </credit>
    <credit type="editor">
      <name>Petr Kovar</name>
      <email>pknbe@volny.cz</email>
      <years>2019</years>
    </credit>

    <include xmlns="http://www.w3.org/2001/XInclude" href="legal.xml"/>

    <desc>Detailed information about profile and profile selection.</desc>
  
    <mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
      <mal:name>Rafael Fontenelle</mal:name>
      <mal:email>rafaelff@gnome.org</mal:email>
      <mal:years>2017</mal:years>
    </mal:credit>
  </info>

  <title>Perfis</title>

  <p>A <em>profile</em> 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.</p>

  <p>Pares de chave que são definidos em um <em>perfil</em> <sys>dconf</sys> vão sobrepor as configurações padrões a menos que haja um problema com o valor que você tem definido.</p>

  <p>Você geralmente vai querer que seu perfil <sys>dconf</sys> consista em um <em>banco de dados de usuário</em> e pelo menos um banco de dados de sistema. O perfil deve listar um banco de dados por linha.</p>

  <p>A primeira linha de um perfil é o banco de dados para onde alterações são escritas. Ela geralmente é <code>user-db:<input>user</input></code>. <input>user</input> é o nome do banco de dados do usuário que normalmente pode ser localizado em <file>~/.config/dconf</file>.</p>

  <p>A <code>system-db</code> line specifies a system database. These databases
  are found in <file>/etc/dconf/db/</file>.</p>

  <example>
    <listing>
      <title>Perfil de amostra</title>
<code its:translate="no">
user-db:user
system-db:<var>local</var>
system-db:<var>site</var>
</code>
    </listing>
  </example>

  <!-- TODO: explain the profile syntax (maybe new page) -->
  <!--TODO: explain local and site -->

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

  <p>However, the order of precedence for <link xref="dconf-lockdown">locks</link>
  is reversed. Locks introduced in the <code>site</code> or <code>local</code>
  database files take priority over those present in <code>user</code>.</p>

  <note style="important">
  <p>O perfil <sys>dconf</sys> para uma sessão é determinada ao iniciar a sessão, então usuários terão que encerrar a sessão e iniciá-la novamente para aplicar um novo perfil <sys>dconf</sys> de usuário para suas sessões.</p>
  </note>

  <p>For more information, see the <link its:translate="no" href="man:dconf(7)">
  <cmd>dconf</cmd>(7)</link> man page.</p>

  <section id="dconf-profiles">

  <title>Selecionando um perfil</title>

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

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

  <p>For more information, see the <link its:translate="no" href="man:dconf(7)">
  <cmd>dconf</cmd>(7)</link> man page.</p>

  </section>

</page>
