Show Table of Contents
11.4. 设置强制性扩展程序
在 GNOME Shell 系统中,您可以提供一组用户必须使用的扩展程序。为此,在
/usr/share/gnome-shell/extensions 目录中安装这些扩展程序,然后锁定 org.gnome.shell.enabled-extensions 和 org.gnome.shell.development-tools 的键值。
锁定
org.gnome.shell.development-tools 的键值可以确保用户无法用 GNOME Shell 的内置调试器和检查工具(Looking Glass)停用任何强制性的扩展程序。
过程 11.4. 设置强制性扩展程序
- 在
/etc/dconf/db/local.d/00-extensions-mandatory中创建一个用于计算机范围设置的local数据库文件。[org/gnome/shell] # List all mandatory extensions enabled-extensions=['myextension1@myname.example.com', 'myextension2@myname.example.com'] # Disable access to Looking Glass development-tools=false
enabled-extensions的键值通过扩展程序的 uuid 规定了被启用的扩展程序(myextension1@myname.example.com 和 myextension2@myname.example.com)。development-tools的键值被设置为假(false),以阻止用户使用应用程序 Looking Glass。 - 覆盖用户设置,并阻止用户在
/etc/dconf/db/local.d/locks/extensions-mandatory中对此修改:# Lock the list of mandatory extensions and access to Looking Glass /org/gnome/shell/enabled-extensions /org/gnome/shell/development-tools
- 更新系统数据库:
#dconf update

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.