1 <refentry id="glib-compile-schemas" lang="en">
4 <refentrytitle>glib-compile-schemas</refentrytitle>
5 <manvolnum>1</manvolnum>
6 <refmiscinfo class="manual">User Commands</refmiscinfo>
10 <refname>glib-compile-schemas</refname>
11 <refpurpose>GSettings schema compiler</refpurpose>
16 <command>glib-compile-schemas</command>
17 <arg choice="opt" rep="repeat">option</arg>
18 <arg choice="req">directory</arg>
22 <refsect1><title>Description</title>
23 <para><command>glib-compile-schemas</command> compiles all the GSettings XML
24 schema files in <replaceable>directory</replaceable> into a binary file
25 with the name <filename>gschemas.compiled</filename> that can be used
26 by <link linkend="GSettings"><type>GSettings</type></link>. The XML schema
27 files must have the filename extension <filename>.gschema.xml</filename>.
28 For a detailed description of the XML file format, see the
29 <link linkend="GSettings"><type>GSettings</type></link> documentation.
32 At runtime, GSettings looks for schemas in the
33 <filename>glib-2.0/schemas</filename> subdirectories of all directories
34 specified in the <envar>XDG_DATA_DIRS</envar> environment variable. The
35 usual location to install schema files is
36 <filename>/usr/share/glib-2.0/schemas</filename>.
39 <refsect2><title>Options</title>
43 <term><option>-h</option>, <option>--help</option></term>
50 <term><option>--targetdir=<replaceable>TARGETDIR</replaceable></option></term>
52 Store <filename>gschemas.compiled</filename> in <replaceable>TARGETDIR</replaceable> instead of <replaceable>directory</replaceable>.
57 <term><option>--dry-run</option></term>
59 Don't write <filename>gschemas.compiled</filename>. This option can be used
60 to check <filename>.gschema.xml</filename> sources for errors.
65 <term><option>--allow-any-name</option></term>
67 Do not enforce restrictions on key names. Note that this option is purely
68 to facility the transition from GConf, and will be removed at some time
76 <refsect1><title>See also</title>
79 <refentrytitle>gsettings-schema-convert</refentrytitle>
80 <manvolnum>1</manvolnum>
81 </citerefentry> is a utility to convert GConf schemas into GSettings schemas.