3.3. 对所有用户禁用热角功能
要禁用所有用户的热线功能,您需要创建一个 dconf
配置集。
流程
在
/etc/dconf/profile/user
文件中创建用户配置文件。user-db:user system-db:local
user-db:user system-db:local
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 在
/etc/dconf/db/local.d/
目录中创建一个文件,如/etc/dconf/db/local.d/00-interface
,其内容如下:Specify the dconf path GSettings key names and their corresponding values
# Specify the dconf path [org/gnome/desktop/interface] # GSettings key names and their corresponding values enable-hot-corners='FALSE'
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 在
/etc/dconf/db/local.d/locks
目录中创建一个文件,如/etc/dconf/db/local.d/locks/00-interface
,其内容如下:Prevent users from changing values for the following keys:
# Prevent users from changing values for the following keys: /org/gnome/desktop/interface/enable-hot-corners
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 配置文件锁定了所有用户的
/org/gnome/desktop/interface/enable-hot-corners
键。这个键用于控制是否启用热线。更新系统数据库以使更改生效。
dconf update
# dconf update
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - 确保所有用户都已注销。当用户重新登录时,这些更改将生效。