Oracle® Solaris 11.2 Desktop 管理员指南

退出打印视图

更新时间: 2014 年 7 月
 
 

外观首选项

以下各节介绍如何为外观首选项指定强制值或缺省值。

字体首选项

要设置字体首选项,请修改两个首选项键的值。下表显示了要修改的键及其对应的用户界面部分。

GConf 位置
用户界面组件
/desktop/gnome/interface/font_name
"Font"(字体)首选项工具中的 "Application"(应用程序)字体选项
/desktop/gnome/interface/document_font_name
"Font"(字体)首选项工具中的 "Document font"(文档字体)选项
/desktop/gnome/interface/monospace_font_name
"Font"(字体)首选项工具中的 "Fixed Width"(等宽)字体选项
/apps/metacity/general/titlebar_font
"Font"(字体)首选项工具中的 "Window Title"(窗口标题)字体选项
/apps/nautilus/preferences/desktop_font
"Font"(字体)首选项工具中的 "Desktop"(桌面)字体选项

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

# gconftool-2 --direct --config-source \
xml:readwrite:/etc/gconf/gconf.xml.defaults \
--load my-panel-setup.entries

要将 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 \
/desktosp/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 架构定义文件。