Java Desktop System 发行版本 2 管理指南

设置外观首选项

下文介绍如何为外观首选项指定强制或默认值。

设置字体首选项

要设置字体首选项,请修改两个首选项键的值。下表显示要修改的键以及与这些键对应的用户界面组件:

GConf 位置 

用户界面组件 

/desktop/gnome/interface/font_name 

字体首选项工具,应用程序字体选项

/apps/nautilus/preferences/desktop_font 

字体 首选项工具,“桌面字体”选项

例如,要将 Sans 12 设置为强制的应用程序字体,请运行以下命令:

# gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type string --set /desktop/gnome/interface/font_name “Sans 12”

要将 palatino 12 设置为默认的桌面对象字体,请运行以下命令:

# gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.defaults --type string --set /apps/nautilus/preferences/desktop_font “palatino 12”

设置背景首选项

要为桌面背景设置首选项,您可修改 /desktop/gnome/background 位置中首选项键的值。例如,要为背景设置强制图像,请运行以下命令:

# gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type string --set /desktop/gnome/background/picture_filename filename.png

要为此首选项设置默认值,请运行以下命令:

# gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.defaults --type string --set /desktop/gnome/background/picture_filename filename.png

还可以设置其他背景首选项。有关其他背景首选项的信息,参见 desktop_gnome_background.schemas 架构定义文件

设置启动图像首选项

要设置启动图像首选项,您可修改 /apps/gnome-session/options/ 位置中首选项键的值。例如,如果不希望用户看到启动图像,请按如下方式设置强制值:

# gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type bool --set /apps/gnome-session/options/show_splash_screen false

要为此首选项设置默认值,请运行以下命令:

# gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.defaults --type bool --set /apps/gnome-session/options/show_splash_screen false

还可以设置其他显示图像首选项。有关其他启动图像首选项的信息,参见 gnome-session.schemas 架构定义文件。