Show Table of Contents
9.6. GSettings 键值属性
您只能在“
dconf”数据库中设置一次 GSettings 键值。如果您在“dconf”数据库中不同的地方为不同的值设定了相同的键值,那么它们中只有一个能生效。换句话说,您将会以这个键值设置覆盖其它的键值设置。
在每一个“
dconf”系统数据库中,每一个键值只能拥有一个值。但需要注意的是,对于键值而言,值是以数组存在的。拥有数组类型的键值有多个值,它们被指定在如下所示,并以逗号区分开的列表中。
key=['option1', 'option2']
例 9.3. org.gnome.desktop.input-sources.xkb-options GSettings 键值
设置
org.gnome.desktop.input-sources.xkb-options GSettings 键值的方法如下所示。它只能被设定一次,因此如果您想要一个值中存在两个元素,您需要将它们指定于同一个配置文件中。因为这是一个阵列类型的值,所以它可以有许多元素,从而即使设定多个键值也可以正常工作。
[org/gnome/desktop/input-sources] # Enable Ctrl-Alt-Backspace for all users # Set the Right Alt key as the Compose key and enable it xkb-options=['terminate:ctrl_alt_bksp', 'compose:ralt']

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.