JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Oracle Solaris 11.1 Desktop Administrator's Guide     Oracle Solaris 11.1 Information Library
search filter icon
search icon

Document Information

Preface

1.  Administering the Oracle Solaris Desktop

2.  Managing User Preferences With GConf

GConf Overview

GConf Repository Components

Configuration Sources

Schema

Schema Definition Files

GConf Daemon

Working With the GConf Command-Line Tool

Setting Preference Values

General Preferences

HTTP Proxy Preferences

Number of Workspaces

Keyboard Accessibility Preferences

Keyboard Shortcut Preferences

Specifying Panel and Panel Object Preferences

Individual Panels and Panel Objects Structure

Look-and-Feel Preferences

Font Preferences

Background Preferences

Splash Image Preferences

Restoring Default Preference Values

3.  Customizing Menus

4.  Installing Themes

5.  Customizing Fonts

6.  Working With MIME Types

7.  Managing Screensavers

8.  Managing Sessions

9.  Overview of the Yelp Help Browser

10.  Improving the Performance of the Oracle Solaris Desktop System

11.  Disabling Features in the Oracle Solaris Desktop System

12.  Working With the X Window System

A.  Hidden Directories

Glossary

Index

GConf Repository Components

The GConf repository is structured like a simple file system, which contains keys organized into a hierarchy. Each key is either a directory containing more keys or has a value.

The repository is organized into logical groups based on the application type and contains the following directories:

Each preference in the GConf repository is expressed as a key-value pair. A GConf preference key is an element in the repository that corresponds to an application preference. For example, the /apps/gnome-session/options/show_splash_screen preference key corresponds to the Show Splash Screen on Login option in the Sessions preference tool.

Preference keys typically have simple data types, such as the following:

The format of the preference key in the repository depends on the Extensible Markup Language (XML) backend module that is used to read the repository. The following is an example of the /desktop/gnome/interface/font_name preference key when an XML backend module is used to read the repository:

<entry name="font_name" mtime="1038323555" muser="user123" type="string">
        <stringvalue>Sans 10</stringvalue>
</entry>

Note - When this guide refers to a preference key, the path to the key is added to the name of the key. For example, the font_name preference key in the /desktop/gnome/interface subdirectory is referred to as /desktop/gnome/interface/font_name.


Configuration Sources

The GConf repository contains a series of storage locations that are called configuration sources. The configuration sources are listed in the GConf path file, which is located in the /etc/gconf/2 directory.

The path file specifies the following information for each configuration source:

The GConf path file also contains include instructions. By default, the contents of the GConf path file are as follows:

xml:readonly:/etc/gconf/gconf.xml.mandatory
include /etc/gconf/2/local-mandatory.path
include "$(HOME)/.gconf.path"
include /etc/gconf/2/local-defaults.path
xml:readwrite:$(HOME)/.gconf
xml:readonly:/etc/gconf/gconf.xml.defaults

When GConf searches for a preference value, GConf reads the configuration sources in the order specified in the path file. The following table describes the configuration sources in the path file.

Configuration Source
Description
Mandatory
The permissions to the configuration source are set to read only. Users cannot overwrite the values in this source. So, the preferences in the source are mandatory.
User
The configuration source is stored in the .gconf directory in the home directory of the user. When the user sets a preference, the new preference information is added to this location.

You can use the Configuration Editor application to modify the user configuration source.

Default
The configuration source contains the default preference settings.

GConf applies preferences in the following order of priority:

  1. Mandatory preferences

  2. User-specified preferences

  3. Default preferences

The include instructions in the GConf path file enable you to specify other configuration sources.

Included Configuration Source
Description
/etc/gconf/2/local-mandatory.path
Use this configuration source to store mandatory preference values for a particular system.
$(HOME)/.gconf.path
Specify the location of the configuration source in the home directory in the .gconf.path file.
/etc/gconf/2/local-defaults.path
Use this configuration source to store default preference values for a particular system.

Schema

A GConf schema is a collective term for a GConf schema key and a GConf schema object. Schema keys, schema objects, and their relationship to preference keys are defined as follows:

You can associate a schema key with a preference key. For example, the /desktop/gnome/interface/font_name key includes the following schema key:

<entry name="font_name" mtime="1034873859" 
schema="/schemas/desktop/gnome/interface/font_name"/>

When you associate a schema key with a preference key, the preference uses the suggested value that is specified in the schema object of the schema key. The suggested value is contained in the <default> element in the schema object. By default, all the preference keys in the default configuration source are associated with schema keys. Typically, schemas are stored in the default configuration source.

Schema Definition Files

Schemas are generated from schema definition files. A schema definition file defines the characteristics of all keys for a particular application and is used to create a new configuration source. The schema definition files have a .schemas extension and are included in the /etc/gconf/schemas directory.

Some schema definition files correspond closely to a part of the Oracle Solaris Desktop user interface. For example, the system_http_proxy.schemas file describes keys that correspond to the preferences in the Internet preference tool.

Other schema definition files describe keys that are not exposed by the Oracle Solaris Desktop user interface. For example, the panel-global.schemas file describes the /apps/panel/global/tooltips_enabled key. This key, which controls whether tooltips are shown on desktop panels, is not exposed as a preference in any desktop preference tool. Such keys might be modified using the gconftool-2 command. For more information, see Working With the GConf Command-Line Tool.

Some parts of the Oracle Solaris Desktop user interface contain preferences that represent GConf keys from more than one schema definition file. For example, the Keyboard Shortcuts preference tool contains preferences that represent keys from the panel-global-config.schemas and metacity.schemas files.