From Fedora Project Wiki

Revision as of 18:24, 17 November 2010 by Toshio (talk | contribs) (Final changes to match what's in the other recently approved GNOME3 scriptlets)

This page is a draft only
It is still under construction and content may change. Do not rely on the information on this page.

GSettings Schema

GSettings is the configuration system used by the GNOME 3 desktop. It replaces the older GConf system, which was used in GNOME 2. GSettings has pluggable backends, the 'native' one for GNOME is using DConf to store settings. The GSettings API and utilities are part of the glib2 package.

Programs which use GSettings install schema information including default values in the directory %{_datadir}/glib-2.0/schemas. Schema files are xml files with the extension .gschema.xml. At runtime, GSettings uses the schemas in a compiled binary (but arch-neutral) form, which is created by running the glib-compile-schemas utility. glib-compile-schemas must be run whenever the set of installed schemas changes.

%postun
glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :

%post
glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :