1 <refentry id="gsettings-tool" lang="en">
4 <refentrytitle>gsettings</refentrytitle>
5 <manvolnum>1</manvolnum>
6 <refmiscinfo class="manual">User Commands</refmiscinfo>
10 <refname>gsettings</refname>
11 <refpurpose>GSettings configuration tool</refpurpose>
16 <command>gsettings</command>
17 <arg choice="plain">get</arg>
18 <arg choice="plain"><replaceable>SCHEMA</replaceable><arg choice="opt">:<replaceable>PATH</replaceable></arg></arg>
19 <arg choice="plain"><replaceable>KEY</replaceable></arg>
22 <command>gsettings</command>
23 <arg choice="plain">monitor</arg>
24 <arg choice="plain"><replaceable>SCHEMA</replaceable><arg choice="opt">:<replaceable>PATH</replaceable></arg></arg>
25 <arg choice="opt"><replaceable>KEY</replaceable></arg>
28 <command>gsettings</command>
29 <arg choice="plain">writable</arg>
30 <arg choice="plain"><replaceable>SCHEMA</replaceable><arg choice="opt">:<replaceable>PATH</replaceable></arg></arg>
31 <arg choice="plain"><replaceable>KEY</replaceable></arg>
34 <command>gsettings</command>
35 <arg choice="plain">range</arg>
36 <arg choice="plain"><replaceable>SCHEMA</replaceable><arg choice="opt">:<replaceable>PATH</replaceable></arg></arg>
37 <arg choice="plain"><replaceable>KEY</replaceable></arg>
40 <command>gsettings</command>
41 <arg choice="plain">set</arg>
42 <arg choice="plain"><replaceable>SCHEMA</replaceable><arg choice="opt">:<replaceable>PATH</replaceable></arg></arg>
43 <arg choice="plain"><replaceable>KEY</replaceable></arg>
44 <arg choice="plain"><replaceable>VALUE</replaceable></arg>
47 <command>gsettings</command>
48 <arg choice="plain">reset</arg>
49 <arg choice="plain"><replaceable>SCHEMA</replaceable><arg choice="opt">:<replaceable>PATH</replaceable></arg></arg>
50 <arg choice="plain"><replaceable>KEY</replaceable></arg>
53 <command>gsettings</command>
54 <arg choice="plain">reset-recursively</arg>
55 <arg choice="plain"><replaceable>SCHEMA</replaceable><arg choice="opt">:<replaceable>PATH</replaceable></arg></arg>
58 <command>gsettings</command>
59 <arg choice="plain">list-schemas</arg>
62 <command>gsettings</command>
63 <arg choice="plain">list-relocatable-schemas</arg>
66 <command>gsettings</command>
67 <arg choice="plain">list-keys</arg>
68 <arg choice="plain"><replaceable>SCHEMA</replaceable><arg choice="opt">:<replaceable>PATH</replaceable></arg></arg>
71 <command>gsettings</command>
72 <arg choice="plain">list-children</arg>
73 <arg choice="plain"><replaceable>SCHEMA</replaceable><arg choice="opt">:<replaceable>PATH</replaceable></arg></arg>
76 <command>gsettings</command>
77 <arg choice="plain">list-recursively</arg>
78 <arg choice="opt"><replaceable>SCHEMA</replaceable><arg choice="opt">:<replaceable>PATH</replaceable></arg></arg>
81 <command>gsettings</command>
82 <arg choice="plain">help</arg>
83 <arg choice="opt"><replaceable>COMMAND</replaceable></arg>
87 <refsect1><title>Description</title>
88 <para><command>gsettings</command> offers a simple commandline
89 interface to <link linkend="GSettings"><type>GSettings</type></link>.
90 It lets you get, set or monitor an individual key for changes.
93 The <replaceable>SCHEMA</replaceable> and <replaceable>KEY</replaceable>
94 arguments are required for most commands to specify the schema id and the
95 name of the key to operate on. The schema id may optionally have a
96 :<replaceable>PATH</replaceable> suffix. Specifying the path is only needed
97 if the schema does not have a fixed path.
100 When setting a key, you also need specify a <replaceable>VALUE</replaceable>
101 The format for the value is that of a serialized
102 <link linkend="GVariant"><type>GVariant</type></link>,
104 must include explicit quotes: "'foo'". This format is also used when printing
108 <refsect2><title>Commands</title>
112 <term><option>get</option></term>
114 Gets the value of <replaceable>KEY</replaceable>.
115 The value is printed out as a serialised
116 <link linkend="GVariant"><type>GVariant</type></link>.
121 <term><option>monitor</option></term>
123 Monitors <replaceable>KEY</replaceable> for changes and prints the changed
124 values. If no <replaceable>KEY</replaceable> is specified, all keys in the
125 schema are monitored. Monitoring will continue until the process is terminated.
130 <term><option>writable</option></term>
132 Finds out whether <replaceable>KEY</replaceable> is writable.
137 <term><option>range</option></term>
139 Queries the range of valid values for <replaceable>KEY</replaceable>.
144 <term><option>set</option></term>
146 Sets the value of <replaceable>KEY</replaceable> to
147 <replaceable>VALUE</replaceable>. The value is specified as a serialised
148 <link linkend="GVariant"><type>GVariant</type></link>.
153 <term><option>reset</option></term>
155 Resets <replaceable>KEY</replaceable> to its default value.
160 <term><option>reset-recursively</option></term>
162 Reset all keys under the given <replaceable>SCHEMA</replaceable>.
167 <term><option>list-schemas</option></term>
169 Lists the installed, non-relocatable schemas.
170 See <option>list-relocatable-schemas</option> if you are interested in
176 <term><option>list-relocatable-schemas</option></term>
178 Lists the installed, relocatable schemas.
179 See <option>list-schemas</option> if you are interested in
180 non-relocatable schemas.
185 <term><option>list-keys</option></term>
187 Lists the keys in <replaceable>SCHEMA</replaceable>.
192 <term><option>list-children</option></term>
194 Lists the children of <replaceable>SCHEMA</replaceable>.
199 <term><option>list-recursively</option></term>
201 Lists keys and values, recursively. If no <replaceable>SCHEMA</replaceable>
202 is given, list keys in all schemas.
207 <term><option>help</option></term>
209 Prints help and exits.