用于 Solaris 操作环境的 GNOME 2.0 桌面系统管理指南

设置首选项值

可以为首选项键设置强制值或默认值。 为用户更改强制首选项值或默认首选项值之前,必须确保 GConf 守护进程没有为任何用户运行。为用户更改首选项值之前,确保所有用户都已经注销。

要为首选项键设置强制值或默认值,请按如下方式使用 gconftool-2 命令:

# gconftool-2 --direct --config-source configuration_source --type data_type --set preference_key value

例如,要将 wwwproxy.xyz.com 设置为强制 HTTP 代理主机,请运行以下命令:

# gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type string --set /system/http_proxy/host wwwproxy.xyz.com

用户不能改写此首选项值。

还可以使用 gconftool-2 命令设置默认值。 例如,要将默认工作区数设置为 5,请运行以下命令:

# gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.defaults --type int --set /apps/metacity/general/num_workspaces 5

用户可以改写此首选项值。


小心:小心:

为用户更改强制首选项值或默认首选项值之前,必须确保所有用户都已经注销。