| 
									
										
										
										
											2010-04-23 17:27:26 -04:00
										 |  |  | <refentry id="glib-compile-schemas" lang="en"> | 
					
						
							| 
									
										
										
										
											2010-04-17 00:31:41 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-08-03 00:36:25 +02:00
										 |  |  | <refentryinfo> | 
					
						
							|  |  |  |   <title>glib-compile-schemas</title> | 
					
						
							|  |  |  |   <productname>GIO</productname> | 
					
						
							|  |  |  |   <authorgroup> | 
					
						
							|  |  |  |     <author> | 
					
						
							|  |  |  |       <contrib>Developer</contrib> | 
					
						
							|  |  |  |       <firstname>Ryan</firstname> | 
					
						
							|  |  |  |       <surname>Lortie</surname> | 
					
						
							|  |  |  |     </author> | 
					
						
							|  |  |  |   </authorgroup> | 
					
						
							|  |  |  | </refentryinfo> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-04-17 00:31:41 -04:00
										 |  |  | <refmeta> | 
					
						
							| 
									
										
										
										
											2010-04-23 17:27:26 -04:00
										 |  |  |   <refentrytitle>glib-compile-schemas</refentrytitle> | 
					
						
							| 
									
										
										
										
											2010-04-17 00:31:41 -04:00
										 |  |  |   <manvolnum>1</manvolnum> | 
					
						
							|  |  |  |   <refmiscinfo class="manual">User Commands</refmiscinfo> | 
					
						
							|  |  |  | </refmeta> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | <refnamediv> | 
					
						
							| 
									
										
										
										
											2010-04-23 17:27:26 -04:00
										 |  |  |   <refname>glib-compile-schemas</refname> | 
					
						
							| 
									
										
										
										
											2010-04-17 00:31:41 -04:00
										 |  |  |   <refpurpose>GSettings schema compiler</refpurpose> | 
					
						
							|  |  |  | </refnamediv> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | <refsynopsisdiv> | 
					
						
							|  |  |  |   <cmdsynopsis> | 
					
						
							| 
									
										
										
										
											2010-04-23 17:27:26 -04:00
										 |  |  |     <command>glib-compile-schemas</command> | 
					
						
							| 
									
										
										
										
											2012-08-03 00:36:25 +02:00
										 |  |  |     <arg choice="opt" rep="repeat">OPTION</arg> | 
					
						
							|  |  |  |     <arg choice="req">DIRECTORY</arg> | 
					
						
							| 
									
										
										
										
											2010-04-17 00:31:41 -04:00
										 |  |  |   </cmdsynopsis> | 
					
						
							|  |  |  | </refsynopsisdiv> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | <refsect1><title>Description</title> | 
					
						
							| 
									
										
										
										
											2010-04-23 17:27:26 -04:00
										 |  |  | <para><command>glib-compile-schemas</command> compiles all the GSettings XML | 
					
						
							| 
									
										
										
										
											2012-08-03 00:36:25 +02:00
										 |  |  | schema files in <replaceable>DIRECTORY</replaceable> into a binary file | 
					
						
							| 
									
										
										
										
											2010-04-17 00:31:41 -04:00
										 |  |  | with the name <filename>gschemas.compiled</filename> that can be used | 
					
						
							| 
									
										
										
										
											2010-04-22 01:15:54 -04:00
										 |  |  | by <link linkend="GSettings"><type>GSettings</type></link>. The XML schema | 
					
						
							|  |  |  | files must have the filename extension <filename>.gschema.xml</filename>. | 
					
						
							|  |  |  | For a detailed description of the XML file format, see the | 
					
						
							|  |  |  | <link linkend="GSettings"><type>GSettings</type></link> documentation. | 
					
						
							| 
									
										
										
										
											2010-04-17 00:31:41 -04:00
										 |  |  | </para> | 
					
						
							| 
									
										
										
										
											2010-04-18 14:58:50 -04:00
										 |  |  | <para> | 
					
						
							|  |  |  | At runtime, GSettings looks for schemas in the | 
					
						
							|  |  |  | <filename>glib-2.0/schemas</filename> subdirectories of all directories | 
					
						
							|  |  |  | specified in the <envar>XDG_DATA_DIRS</envar> environment variable. The | 
					
						
							|  |  |  | usual location to install schema files is | 
					
						
							|  |  |  | <filename>/usr/share/glib-2.0/schemas</filename>. | 
					
						
							|  |  |  | </para> | 
					
						
							| 
									
										
										
										
											2010-08-13 21:21:43 -04:00
										 |  |  | <para> | 
					
						
							|  |  |  | In addition to schema files, glib-compile-schemas reads 'vendor override' | 
					
						
							|  |  |  | files, which are key files that can override default values for keys in | 
					
						
							|  |  |  | the schemas. The group names in the key files are the schema id, and the | 
					
						
							|  |  |  | values are written in serialized GVariant form. | 
					
						
							| 
									
										
										
										
											2012-04-02 10:22:56 +01:00
										 |  |  | Vendor override files must have the filename extension | 
					
						
							| 
									
										
										
										
											2011-03-15 11:28:03 -04:00
										 |  |  | <filename>.gschema.override</filename>. | 
					
						
							| 
									
										
										
										
											2010-08-13 21:21:43 -04:00
										 |  |  | </para> | 
					
						
							| 
									
										
										
										
											2012-03-17 12:39:23 -04:00
										 |  |  | <para> | 
					
						
							|  |  |  | By convention, vendor override files begin with <filename>nn_</filename> | 
					
						
							|  |  |  | where <filename>nn</filename> is a number from 00 to 99.  Higher | 
					
						
							|  |  |  | numbered files have higher priority (eg: if the same override is made in | 
					
						
							|  |  |  | a file numbered 10 and then again in a file numbered 20, the override | 
					
						
							|  |  |  | from 20 will take precedence). | 
					
						
							|  |  |  | </para> | 
					
						
							| 
									
										
										
										
											2012-08-03 00:36:25 +02:00
										 |  |  | </refsect1> | 
					
						
							| 
									
										
										
										
											2010-04-17 00:31:41 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-08-03 00:36:25 +02:00
										 |  |  | <refsect1><title>Options</title> | 
					
						
							| 
									
										
										
										
											2010-04-17 00:31:41 -04:00
										 |  |  | <variablelist> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | <varlistentry> | 
					
						
							|  |  |  | <term><option>-h</option>, <option>--help</option></term> | 
					
						
							|  |  |  | <listitem><para> | 
					
						
							|  |  |  | Print help and exit | 
					
						
							|  |  |  | </para></listitem> | 
					
						
							|  |  |  | </varlistentry> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-09-30 22:56:21 +01:00
										 |  |  | <varlistentry> | 
					
						
							|  |  |  | <term><option>--version</option></term> | 
					
						
							|  |  |  | <listitem><para> | 
					
						
							|  |  |  | Print program version and exit | 
					
						
							|  |  |  | </para></listitem> | 
					
						
							|  |  |  | </varlistentry> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-04-17 00:31:41 -04:00
										 |  |  | <varlistentry> | 
					
						
							| 
									
										
										
										
											2012-08-03 00:36:25 +02:00
										 |  |  | <term><option>--targetdir=<replaceable>TARGET</replaceable></option></term> | 
					
						
							| 
									
										
										
										
											2010-04-17 00:31:41 -04:00
										 |  |  | <listitem><para> | 
					
						
							| 
									
										
										
										
											2012-08-03 00:36:25 +02:00
										 |  |  | Store <filename>gschemas.compiled</filename> in the <replaceable>TARGET</replaceable> directory instead of <replaceable>DIRECTORY</replaceable>. | 
					
						
							| 
									
										
										
										
											2010-04-17 00:31:41 -04:00
										 |  |  | </para></listitem> | 
					
						
							|  |  |  | </varlistentry> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-04-08 06:38:16 -04:00
										 |  |  | <varlistentry> | 
					
						
							|  |  |  | <term><option>--strict</option></term> | 
					
						
							|  |  |  | <listitem><para> | 
					
						
							|  |  |  | Abort on any errors in schemas. Without this option, faulty schema files are | 
					
						
							|  |  |  | simply omitted from the resulting compiled schema. | 
					
						
							|  |  |  | </para></listitem> | 
					
						
							|  |  |  | </varlistentry> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-04-22 20:02:49 -04:00
										 |  |  | <varlistentry> | 
					
						
							|  |  |  | <term><option>--dry-run</option></term> | 
					
						
							|  |  |  | <listitem><para> | 
					
						
							|  |  |  | Don't write <filename>gschemas.compiled</filename>. This option can be used | 
					
						
							|  |  |  | to check <filename>.gschema.xml</filename> sources for errors. | 
					
						
							|  |  |  | </para></listitem> | 
					
						
							|  |  |  | </varlistentry> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-04-17 00:31:41 -04:00
										 |  |  | <varlistentry> | 
					
						
							|  |  |  | <term><option>--allow-any-name</option></term> | 
					
						
							|  |  |  | <listitem><para> | 
					
						
							|  |  |  | Do not enforce restrictions on key names. Note that this option is purely | 
					
						
							|  |  |  | to facility the transition from GConf, and will be removed at some time | 
					
						
							|  |  |  | in the future. | 
					
						
							|  |  |  | </para></listitem> | 
					
						
							|  |  |  | </varlistentry> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | </variablelist> | 
					
						
							| 
									
										
										
										
											2010-04-18 14:58:50 -04:00
										 |  |  | </refsect1> | 
					
						
							| 
									
										
										
										
											2010-04-17 00:31:41 -04:00
										 |  |  | </refentry> |