<?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="desktop-favorite-applications" lang="gl">

  <info>
    <link type="guide" xref="appearance"/>
    <revision pkgversion="3.30" date="2019-02-22" status="review"/>

    <credit type="author">
      <name>Aruna Sankaranarayanan</name>
      <email>aruna.evam@gmail.com</email>
    </credit>
    <credit type="editor">
      <name>Petr Kovar</name>
      <email>pknbe@volny.cz</email>
      <years>2019</years>
    </credit>

    <license xmlns="http://projectmallard.org/1.0/" href="https://creativecommons.org/licenses/by-sa/3.0/">
  <p>This work is licensed under a <link href="https://creativecommons.org/licenses/by-sa/3.0/">Creative
  Commons Attribution-ShareAlike 3.0 Unported License</link>.</p>
</license>

    <desc>Personalice os favoritos predeterminados na vista previa de Actividades.</desc>

  <credit type="translator copyright"><name>Fran Diéguez</name><email>frandieguez@gnome.org</email><years>2010-2025</years></credit></info>

  <title>Aplicacións favoritas por omisión</title>

  <p>Favorite applications are those visible on the GNOME Shell
  <link href="help:gnome-help/shell-introduction#activities">dash</link>.
  You can use <sys its:translate="no">dconf</sys> 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
  <sys its:translate="no">dconf</sys> profile found in
  <file its:translate="no">/etc/dconf/profile/user</file>.</p>

<section id="per-user">
  <title>Seleccione aplicacións favoritas diferentes para os distintos usuarios</title>

  <p>You can set the default favorite applications for each user by modifying
  their user database via <cmd>gsettings</cmd>. The following example
  command sets <app>Text Editor</app>,
  <app>Terminal</app> and <app>Files</app> (<sys>nautilus</sys>) as default
  favorites for a user.</p>

  <listing>
    <title>Contidos de <file its:translate="no">/etc/dconf/profile/user</file>:</title>
<code its:translate="no">
# <span its:translate="yes">Esta liña permítelle ao usuario cambiar os favoritos por omisión máis tarde.</span>
user-db:user
</code>
  </listing>

<p>Set Text Editor, Terminal and Files as default favorites:</p>
<screen><output style="prompt">#</output><input>gsettings set org.gnome.shell favorite-apps "['org.gnome.TextEditor.desktop', 'org.gnome.Terminal.desktop', 'org.gnome.Nautilus.desktop']"</input></screen>

  <note style="tip">
    <p>Tamén pode <link xref="dconf-lockdown">bloquear</link> as preferencias de embaixo para evitar que os usuarios as cambien</p>
  </note>

</section>

<section id="all-users">
  <title>Estabelecer as mesmas aplicacións favoritas para todos os usuarios</title>

  <p>In order to have the same favorites for all users, you must modify system
  database files using <link xref="dconf-keyfiles">dconf keyfiles</link>. The
  following steps edit the <sys its:translate="no">dconf</sys> profile
  and then create a keyfile to set default favorite applications for all
  users in the <code>local</code> configuration database.</p>

  <steps>
    <title>Aplicacións favoritas por omisión</title>
    <item xmlns="http://projectmallard.org/1.0/" xmlns:its="http://www.w3.org/2005/11/its" xml:id="dconf-profile-user">
    <p>Cree o perfíl <file its:translate="no">user</file> que contén as seguintes liñas:</p>
    <listing its:translate="no">
      <title><file>/etc/dconf/profile/user</file></title>
      <code>user-db:user
system-db:local</code>
    </listing>
    <p><input its:translate="no">local</input> é o nome dunha base de datos <sys its:translate="no" xref="dconf">dconf</sys>.</p>
  </item>
    <item xmlns="http://projectmallard.org/1.0/" xml:id="dconf-profile-user-dir">
    <p>Create the directory <file>/etc/dconf/db/local.d/</file>
    if it does not already exist.</p>
  </item>
    <item>
      <p>Create the key file
      <file>/etc/dconf/db/local.d/00-favorite-apps</file> to provide
      information for the <sys>local</sys> database.</p>
      <listing>
      <title>Contidos de <file its:translate="no">/etc/dconf/db/local.d/00-favorite-apps</file>:</title>
<code>
# Snippet sets gedit, terminal and nautilus as default favorites for all users
[org/gnome/shell]
favorite-apps = [<var>'gedit.desktop'</var>, <var>'gnome-terminal.desktop'</var>, <var>'nautilus.desktop'</var>]
</code>
      </listing>
    </item>
    <item>
      <p>To prevent the user from overriding these settings, create the file
      <file>/etc/dconf/db/local.d/locks/favorite-apps</file> with the following
      content:</p>
      <listing>
      <title><file>/etc/dconf/db/local.d/locks/favorite-apps</file></title>
<code>
# Bloquear as aplicacións favoritas predeterminadas
/org/gnome/shell/favorite-apps
</code>
      </listing>
    </item>
    <item xmlns="http://projectmallard.org/1.0/" xml:id="dconf-update">
    <p>Actualizar a base de datos do sistema:</p>
    <screen><output style="prompt"># </output><input>dconf update</input></screen>
  </item>
    <item xmlns="http://projectmallard.org/1.0/" xml:id="dconf-logoutin">
    <p>Os usuarios deben pechar a sesión e iniciala de novo para que a configuración a nivel de sistema se aplique.</p>
  </item>
  </steps>

</section>

</page>
