Setting Font Preferences
To set font preferences, modify the values of two preference keys. The following table
shows the keys to modify and the part of the user interface that the keys correspond to:
Table 10.6
GConf Location
/desktop/gnome/interface/
font_name
/apps/nautilus/preferences/
desktop_font
For example, to set Sans 12 as the mandatory application font, use the following com-
mand:
gconftool-2 --direct --config-source
xml:readwrite:/etc/opt/gnome/gconf/gconf.xml.mandatory --type string --set
/desktop/gnome/interface/font_name "Sans 12"
To set Palatino 12 as the default desktop object font, use the following command:
gconftool-2 --direct --config-source
xml:readwrite:/etc/opt/gnome/gconf/gconf.xml.defaults --type string --set
/apps/nautilus/preferences/desktop_font "palatino 12"
Setting Background Preferences
To set preferences for the desktop background, modify the values of the preference
keys in the /desktop/gnome/background location. For example, to set a
mandatory image for the background, use the following command:
gconftool-2 --direct --config-source
xml:readwrite:/etc/opt/gnome/gconf/gconf.xml.mandatory --type string --set
/desktop/gnome/background/picture_filename filename.png
To set a default value for this preference, use the following command:
gconftool-2 --direct --config-source
xml:readwrite:/etc/opt/gnome/gconf/gconf.xml.defaults --type string --set
/desktop/gnome/background/picture_filename filename.png
240
Deployment Guide
Font Preference Keys
User Interface Component
Font preference tool, Application font
option
Font preference tool, Desktop font option