问题描述
该部分笔记将记录:在 GNOME 中,完成某些设置、解决某些问题的方法。
dconf, GSetings, gsettings
dconf,存储着 GNOME 3 的配置,是二进制格式,它做为 GSettings 的后端系统存在,暴露出低级 API。在 GNOME 2 时代,类似的角色是 gconf,但它是以 XML 文本形式存储。
GSetings,是一套高级 API,用来操作 dconf 配置。
gsettings,提供对 GSetings 的命令行操作。
User -> gsettings -> GSetings -> dconf -> Binary configuration
更接地气的说法是,dconf 是 GNOME 3 的注册表,gsettings 是一个查询、读取、设置注册表键值的命令行工具。
显示桌面
How To Show Desktop In GNOME 3
GNOME 3.28 Removes Option to Put Icons on the Desktop
像在Windws中,按下Super + D可以显示桌面,再按一次进行恢复。这在GNOME 3中也是可以的,但是需要手动设置。在Settings – Devices – Keyboard中,为Hide all normal windows功能绑定快捷键即可。
但是显示桌面也没有什么用了:在GNOME 3.28中,已经移除桌面功能了,不会再在桌面上显示图标了。如果想要显示桌面图标,只能通过其他应用程序(通常是文件管理器的功能,比如pcmanfm --desktop命令)。
修改工作空间名
Shortcut to rename workspace in Gnome
1)在某些扩展中可能包含修改 Workspace 的方法,但是
2)可以通过 dconf-editor 工具,搜索workspace-names关键字,参数类型是字符串数组,形如['W1', 'W3', 'W4']格式。
修改标题栏按钮
How do I hide/disable close buttons for GNOME windows?
方法很多,我们是通过修改 GSettings 的 org.gnome.desktop.wm.preferences button-layout 属性,将其设置为 appmenu 即可。
指纹设置
Open the Activities overview and start typing Users.
Click on Users to open the panel.
Press on Disabled, next to Fingerprint Login to add a fingerprint for the selected account. If you are adding the fingerprint for a different user, you will first need to Unlock the panel.