<?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" lang="it">

  <info>
    <link type="guide" xref="software#extension"/>
    <link type="guide" xref="user-settings#lockdown"/>
    <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>pknbe@volny.cz</email>
      <years>2014</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>Impedire all'utente di abilitare o disabilitare le estensioni di GNOME Shell.</desc>
  <credit type="translator copyright"><name>Salvatore Cocuzza</name><email>info@salvatorecocuzza.it</email><years>2025</years></credit></info>

  <title>Bloccare le estensioni abilitate</title>
  
  <p>In GNOME Shell, è possibile impedire all'utente di abilitare o disabilitare le estensioni bloccando le chiavi <code>org.gnome.shell.enabled-extensions</code> e <code>org.gnome.shell.development-tools</code>. Una volta bloccata la chiave <code>org.gnome.shell.enabled-extensions</code>, qualsiasi estensione che non è nell'elenco delle estensioni abilitate verrà automaticamente disabilitata.</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>Lock down the org.gnome.shell.enabled-extensions and
    org.gnome.shell.development-tools keys</title>
    <item>
      <p>Creare un profilo <code>user</code> in <file>/etc/dconf/profile/user</file>:</p>
      <listing>
        <code>
user-db:user
system-db:local
</code>
      </listing>
    </item>
    <item>
      <p>Creare un database <code>local</code> per le impostazioni al livello della macchina in <file>/etc/dconf/db/local.d/00-extensions</file>:</p>
      <listing>
        <code>
[org/gnome/shell]
# Elenco di tutte le estensioni da abilitare per tutti gli utenti
enabled-extensions = ['<input>lamiaestensione1@ilmionome.esempio.it</input>', '<input>lamiaestensione2@ilmionome.esempio.it</input>']
# Disabilita l'accesso a Looking Glass
development-tools=false
</code>
      </listing>
      <p>La chiave <code>enabled-extensions</code> specifica le estensioni abilitate utilizzando l'uuid delle estensioni (<file><input>lamiaestensione1@ilmionome.esempio.it</input></file> e <file><input>lamiaestensione2@ilmionome.esempio.it</input></file>).</p>
      <p>The <code>development-tools</code> key is set to false to disable
      access to Looking Glass.</p>
    </item>
    <item>
      <p>Sovrascrivere l'impostazione dell'utente e impedire all'utente di modificarla in <file>/etc/dconf/db/local.d/locks/extensions</file>:</p>
      <listing>
        <code>
# Blocca la lista delle estensioni abilitate
/org/gnome/shell/enabled-extensions
/org/gnome/shell/disabled-extensions
/org/gnome/shell/development-tools
</code>
</listing>
    </item>
    <item xmlns="http://projectmallard.org/1.0/" xml:id="dconf-update">
    <p>Aggiornare i database di sistema:</p>
    <screen><output style="prompt"># </output><input>dconf update</input></screen>
  </item>
  </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>
