| Server IP : 172.67.134.114 / Your IP : 162.159.115.41 Web Server : Apache/2.4.37 System : Linux almalinux.duckdns.org 4.18.0-553.111.1.el8_10.x86_64 #1 SMP Sun Mar 8 20:06:07 EDT 2026 x86_64 User : ricodeal ( 1046) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/share/help/gl/system-admin-guide/ |
Upload File : |
<?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="extensions-lockdown" xml:lang="gl">
<info>
<link type="guide" xref="software#extension"/>
<link type="seealso" xref="extensions-enable"/>
<link type="seealso" xref="extensions"/>
<revision pkgversion="3.12" date="2014-06-17" status="review"/>
<credit type="author copyright">
<name>Petr Kovar</name>
<email>[email protected]</email>
<years>2014</years>
</credit>
<include xmlns="http://www.w3.org/2001/XInclude" href="legal.xml"/>
<desc>Disallow the user to enable or disable GNOME Shell extensions.</desc>
<mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
<mal:name>Fran Diéguez</mal:name>
<mal:email>[email protected]</mal:email>
<mal:years>2010-2018</mal:years>
</mal:credit>
</info>
<title>Bloquear as extensións activadas</title>
<p>In GNOME Shell, you can prevent the user from enabling or disabling
extensions by locking down the
<code>org.gnome.shell.enabled-extensions</code> and
<code>org.gnome.shell.development-tools</code> keys. This allows you to
provide a set of extensions that the user has to use.</p>
<p>Locking down the <code>org.gnome.shell.development-tools</code> key
ensures that the user cannot use GNOME Shell’s integrated debugger and
inspector tool (<app>Looking Glass</app>) to disable any mandatory
extensions.</p>
<steps>
<title>Bloquear as chaves org.gnome.shell.enabled-extensions e org.gnome.shell.development-tools</title>
<item>
<p>Cree un perfíl de <code>usuario</code> en <file>/etc/dconf/profile/user</file>:</p>
<listing>
<code>
user-db:user
system-db:local
</code>
</listing>
</item>
<item>
<p>Cree unha base de datos <code>local</code> para as preferencias a nivel de máquina en <file>/etc/dconf/db/local.d/00-extensions</file>:</p>
<listing>
<code>
[org/gnome/shell]
# List all extensions that you want to have enabled for all users
enabled-extensions=['<input>[email protected]</input>', '<input>[email protected]</input>']
# Disable access to Looking Glass
development-tools=false
</code>
</listing>
<p>The <code>enabled-extensions</code> key specifies the enabled
extensions using the extensions’ uuid
(<code>[email protected]</code> and
<code>[email protected]</code>).</p>
<p>A chave <code>desenvolvemento-ferramentas</code> está estabelecida a false para desactivar o acceso a Looking Glass.</p>
</item>
<item>
<p>Override the user’s setting and prevent the user from changing it in
<file>/etc/dconf/db/local.d/locks/extensions</file>:</p>
<listing>
<code>
# Bloquear a lista de extensións
/org/gnome/shell/enabled-extensions
/org/gnome/shell/development-tools
</code>
</listing>
</item>
<include xmlns="http://www.w3.org/2001/XInclude" href="dconf-snippets.xml" xpointer="xpointer(/*/*[@xml:id='dconf-update'])"/>
</steps>
<p>After locking down the <code>org.gnome.shell.enabled-extensions</code> and
<code>org.gnome.shell.development-tools</code> keys, any extensions installed
in <file>~/.local/share/gnome-shell/extensions</file> or
<file>/usr/share/gnome-shell/extensions</file> that are not listed in the
<code>org.gnome.shell.enabled-extensions</code> key will not be loaded by
GNOME Shell, thus preventing the user from using them.</p>
</page>