2011-02-08 05:28:26 +01:00
|
|
|
<refentry id="gsettings-tool" lang="en">
|
2010-04-22 07:15:54 +02:00
|
|
|
|
2012-08-03 00:36:25 +02:00
|
|
|
<refentryinfo>
|
|
|
|
<title>gsettings</title>
|
|
|
|
<productname>GIO</productname>
|
|
|
|
<authorgroup>
|
|
|
|
<author>
|
|
|
|
<contrib>Developer</contrib>
|
|
|
|
<firstname>Ryan</firstname>
|
|
|
|
<surname>Lortie</surname>
|
|
|
|
</author>
|
|
|
|
</authorgroup>
|
|
|
|
</refentryinfo>
|
|
|
|
|
2010-04-22 07:15:54 +02:00
|
|
|
<refmeta>
|
|
|
|
<refentrytitle>gsettings</refentrytitle>
|
|
|
|
<manvolnum>1</manvolnum>
|
|
|
|
<refmiscinfo class="manual">User Commands</refmiscinfo>
|
|
|
|
</refmeta>
|
|
|
|
|
|
|
|
<refnamediv>
|
|
|
|
<refname>gsettings</refname>
|
|
|
|
<refpurpose>GSettings configuration tool</refpurpose>
|
|
|
|
</refnamediv>
|
|
|
|
|
|
|
|
<refsynopsisdiv>
|
|
|
|
<cmdsynopsis>
|
|
|
|
<command>gsettings</command>
|
|
|
|
<arg choice="plain">get</arg>
|
2011-01-22 00:02:05 +01:00
|
|
|
<arg choice="plain"><replaceable>SCHEMA</replaceable><arg choice="opt">:<replaceable>PATH</replaceable></arg></arg>
|
|
|
|
<arg choice="plain"><replaceable>KEY</replaceable></arg>
|
2010-04-22 07:15:54 +02:00
|
|
|
</cmdsynopsis>
|
|
|
|
<cmdsynopsis>
|
|
|
|
<command>gsettings</command>
|
|
|
|
<arg choice="plain">monitor</arg>
|
2011-01-22 00:02:05 +01:00
|
|
|
<arg choice="plain"><replaceable>SCHEMA</replaceable><arg choice="opt">:<replaceable>PATH</replaceable></arg></arg>
|
2011-02-23 06:13:39 +01:00
|
|
|
<arg choice="opt"><replaceable>KEY</replaceable></arg>
|
2010-04-22 07:15:54 +02:00
|
|
|
</cmdsynopsis>
|
|
|
|
<cmdsynopsis>
|
|
|
|
<command>gsettings</command>
|
|
|
|
<arg choice="plain">writable</arg>
|
2011-01-22 00:02:05 +01:00
|
|
|
<arg choice="plain"><replaceable>SCHEMA</replaceable><arg choice="opt">:<replaceable>PATH</replaceable></arg></arg>
|
|
|
|
<arg choice="plain"><replaceable>KEY</replaceable></arg>
|
|
|
|
</cmdsynopsis>
|
|
|
|
<cmdsynopsis>
|
|
|
|
<command>gsettings</command>
|
|
|
|
<arg choice="plain">range</arg>
|
|
|
|
<arg choice="plain"><replaceable>SCHEMA</replaceable><arg choice="opt">:<replaceable>PATH</replaceable></arg></arg>
|
|
|
|
<arg choice="plain"><replaceable>KEY</replaceable></arg>
|
2010-04-22 07:15:54 +02:00
|
|
|
</cmdsynopsis>
|
2016-08-25 20:39:33 +02:00
|
|
|
<cmdsynopsis>
|
|
|
|
<command>gsettings</command>
|
|
|
|
<arg choice="plain">describe</arg>
|
|
|
|
<arg choice="plain"><replaceable>SCHEMA</replaceable><arg choice="opt">:<replaceable>PATH</replaceable></arg></arg>
|
|
|
|
<arg choice="plain"><replaceable>KEY</replaceable></arg>
|
|
|
|
</cmdsynopsis>
|
2010-04-22 07:15:54 +02:00
|
|
|
<cmdsynopsis>
|
|
|
|
<command>gsettings</command>
|
|
|
|
<arg choice="plain">set</arg>
|
2011-01-22 00:02:05 +01:00
|
|
|
<arg choice="plain"><replaceable>SCHEMA</replaceable><arg choice="opt">:<replaceable>PATH</replaceable></arg></arg>
|
|
|
|
<arg choice="plain"><replaceable>KEY</replaceable></arg>
|
|
|
|
<arg choice="plain"><replaceable>VALUE</replaceable></arg>
|
|
|
|
</cmdsynopsis>
|
|
|
|
<cmdsynopsis>
|
|
|
|
<command>gsettings</command>
|
|
|
|
<arg choice="plain">reset</arg>
|
|
|
|
<arg choice="plain"><replaceable>SCHEMA</replaceable><arg choice="opt">:<replaceable>PATH</replaceable></arg></arg>
|
|
|
|
<arg choice="plain"><replaceable>KEY</replaceable></arg>
|
|
|
|
</cmdsynopsis>
|
2011-04-12 18:56:33 +02:00
|
|
|
<cmdsynopsis>
|
|
|
|
<command>gsettings</command>
|
|
|
|
<arg choice="plain">reset-recursively</arg>
|
|
|
|
<arg choice="plain"><replaceable>SCHEMA</replaceable><arg choice="opt">:<replaceable>PATH</replaceable></arg></arg>
|
|
|
|
</cmdsynopsis>
|
2011-01-22 00:02:05 +01:00
|
|
|
<cmdsynopsis>
|
|
|
|
<command>gsettings</command>
|
|
|
|
<arg choice="plain">list-schemas</arg>
|
2018-01-05 00:45:57 +01:00
|
|
|
<arg choice="opt">--print-paths</arg>
|
2011-01-22 00:02:05 +01:00
|
|
|
</cmdsynopsis>
|
|
|
|
<cmdsynopsis>
|
|
|
|
<command>gsettings</command>
|
|
|
|
<arg choice="plain">list-relocatable-schemas</arg>
|
|
|
|
</cmdsynopsis>
|
|
|
|
<cmdsynopsis>
|
|
|
|
<command>gsettings</command>
|
|
|
|
<arg choice="plain">list-keys</arg>
|
|
|
|
<arg choice="plain"><replaceable>SCHEMA</replaceable><arg choice="opt">:<replaceable>PATH</replaceable></arg></arg>
|
|
|
|
</cmdsynopsis>
|
|
|
|
<cmdsynopsis>
|
|
|
|
<command>gsettings</command>
|
|
|
|
<arg choice="plain">list-children</arg>
|
|
|
|
<arg choice="plain"><replaceable>SCHEMA</replaceable><arg choice="opt">:<replaceable>PATH</replaceable></arg></arg>
|
|
|
|
</cmdsynopsis>
|
|
|
|
<cmdsynopsis>
|
|
|
|
<command>gsettings</command>
|
|
|
|
<arg choice="plain">list-recursively</arg>
|
2011-02-23 06:13:39 +01:00
|
|
|
<arg choice="opt"><replaceable>SCHEMA</replaceable><arg choice="opt">:<replaceable>PATH</replaceable></arg></arg>
|
2010-04-22 07:15:54 +02:00
|
|
|
</cmdsynopsis>
|
|
|
|
<cmdsynopsis>
|
|
|
|
<command>gsettings</command>
|
|
|
|
<arg choice="plain">help</arg>
|
2011-01-22 00:02:05 +01:00
|
|
|
<arg choice="opt"><replaceable>COMMAND</replaceable></arg>
|
2010-04-22 07:15:54 +02:00
|
|
|
</cmdsynopsis>
|
|
|
|
</refsynopsisdiv>
|
|
|
|
|
|
|
|
<refsect1><title>Description</title>
|
|
|
|
<para><command>gsettings</command> offers a simple commandline
|
|
|
|
interface to <link linkend="GSettings"><type>GSettings</type></link>.
|
|
|
|
It lets you get, set or monitor an individual key for changes.
|
|
|
|
</para>
|
|
|
|
<para>
|
2011-01-22 00:02:05 +01:00
|
|
|
The <replaceable>SCHEMA</replaceable> and <replaceable>KEY</replaceable>
|
|
|
|
arguments are required for most commands to specify the schema id and the
|
|
|
|
name of the key to operate on. The schema id may optionally have a
|
|
|
|
:<replaceable>PATH</replaceable> suffix. Specifying the path is only needed
|
|
|
|
if the schema does not have a fixed path.
|
2010-04-22 07:15:54 +02:00
|
|
|
</para>
|
|
|
|
<para>
|
2011-01-22 00:02:05 +01:00
|
|
|
When setting a key, you also need specify a <replaceable>VALUE</replaceable>
|
2010-04-22 07:15:54 +02:00
|
|
|
The format for the value is that of a serialized
|
|
|
|
<link linkend="GVariant"><type>GVariant</type></link>,
|
|
|
|
so e.g. a string
|
|
|
|
must include explicit quotes: "'foo'". This format is also used when printing
|
|
|
|
out values.
|
|
|
|
</para>
|
2013-07-17 01:21:31 +02:00
|
|
|
<para>
|
|
|
|
Note that gsettings needs a D-Bus session bus connection to write changes to
|
|
|
|
the dconf database.
|
|
|
|
</para>
|
2012-08-03 00:36:25 +02:00
|
|
|
</refsect1>
|
2010-04-22 07:15:54 +02:00
|
|
|
|
2012-08-03 00:36:25 +02:00
|
|
|
<refsect1><title>Commands</title>
|
2010-04-22 07:15:54 +02:00
|
|
|
<variablelist>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term><option>get</option></term>
|
|
|
|
<listitem><para>
|
2011-01-22 00:02:05 +01:00
|
|
|
Gets the value of <replaceable>KEY</replaceable>.
|
2021-05-07 13:42:44 +02:00
|
|
|
The value is printed out as a serialized
|
2010-04-22 07:15:54 +02:00
|
|
|
<link linkend="GVariant"><type>GVariant</type></link>.
|
|
|
|
</para></listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term><option>monitor</option></term>
|
|
|
|
<listitem><para>
|
2011-01-22 00:02:05 +01:00
|
|
|
Monitors <replaceable>KEY</replaceable> for changes and prints the changed
|
2011-02-23 06:13:39 +01:00
|
|
|
values. If no <replaceable>KEY</replaceable> is specified, all keys in the
|
|
|
|
schema are monitored. Monitoring will continue until the process is terminated.
|
2010-04-22 07:15:54 +02:00
|
|
|
</para></listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term><option>writable</option></term>
|
|
|
|
<listitem><para>
|
2011-01-22 00:02:05 +01:00
|
|
|
Finds out whether <replaceable>KEY</replaceable> is writable.
|
|
|
|
</para></listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term><option>range</option></term>
|
|
|
|
<listitem><para>
|
|
|
|
Queries the range of valid values for <replaceable>KEY</replaceable>.
|
2010-04-22 07:15:54 +02:00
|
|
|
</para></listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2016-08-25 20:39:33 +02:00
|
|
|
<varlistentry>
|
|
|
|
<term><option>describe</option></term>
|
|
|
|
<listitem><para>
|
|
|
|
Queries the description of valid values for <replaceable>KEY</replaceable>.
|
|
|
|
</para></listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2010-04-22 07:15:54 +02:00
|
|
|
<varlistentry>
|
|
|
|
<term><option>set</option></term>
|
|
|
|
<listitem><para>
|
2011-01-22 00:02:05 +01:00
|
|
|
Sets the value of <replaceable>KEY</replaceable> to
|
2021-05-07 13:42:44 +02:00
|
|
|
<replaceable>VALUE</replaceable>. The value is specified as a serialized
|
2010-04-22 07:15:54 +02:00
|
|
|
<link linkend="GVariant"><type>GVariant</type></link>.
|
|
|
|
</para></listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
2011-01-22 00:02:05 +01:00
|
|
|
<term><option>reset</option></term>
|
2010-04-22 07:15:54 +02:00
|
|
|
<listitem><para>
|
2011-01-22 00:02:05 +01:00
|
|
|
Resets <replaceable>KEY</replaceable> to its default value.
|
2010-04-22 07:15:54 +02:00
|
|
|
</para></listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2011-04-12 18:56:33 +02:00
|
|
|
<varlistentry>
|
|
|
|
<term><option>reset-recursively</option></term>
|
|
|
|
<listitem><para>
|
|
|
|
Reset all keys under the given <replaceable>SCHEMA</replaceable>.
|
|
|
|
</para></listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2011-01-22 00:02:05 +01:00
|
|
|
<varlistentry>
|
|
|
|
<term><option>list-schemas</option></term>
|
|
|
|
<listitem><para>
|
|
|
|
Lists the installed, non-relocatable schemas.
|
|
|
|
See <option>list-relocatable-schemas</option> if you are interested in
|
2018-01-05 00:45:57 +01:00
|
|
|
relocatable schemas. If <optional><option>--print-paths</option></optional>
|
|
|
|
is given, the path where each schema is mapped is also printed.
|
2011-01-22 00:02:05 +01:00
|
|
|
</para></listitem>
|
|
|
|
</varlistentry>
|
2010-04-22 07:15:54 +02:00
|
|
|
|
2011-01-22 00:02:05 +01:00
|
|
|
<varlistentry>
|
|
|
|
<term><option>list-relocatable-schemas</option></term>
|
|
|
|
<listitem><para>
|
|
|
|
Lists the installed, relocatable schemas.
|
|
|
|
See <option>list-schemas</option> if you are interested in
|
|
|
|
non-relocatable schemas.
|
|
|
|
</para></listitem>
|
|
|
|
</varlistentry>
|
2010-04-22 07:15:54 +02:00
|
|
|
|
|
|
|
<varlistentry>
|
2011-01-22 00:02:05 +01:00
|
|
|
<term><option>list-keys</option></term>
|
2010-04-22 07:15:54 +02:00
|
|
|
<listitem><para>
|
2011-01-22 00:02:05 +01:00
|
|
|
Lists the keys in <replaceable>SCHEMA</replaceable>.
|
2010-04-22 07:15:54 +02:00
|
|
|
</para></listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
2011-01-22 00:02:05 +01:00
|
|
|
<term><option>list-children</option></term>
|
2010-04-22 07:15:54 +02:00
|
|
|
<listitem><para>
|
2011-01-22 00:02:05 +01:00
|
|
|
Lists the children of <replaceable>SCHEMA</replaceable>.
|
2010-04-22 07:15:54 +02:00
|
|
|
</para></listitem>
|
|
|
|
</varlistentry>
|
2011-01-22 00:02:05 +01:00
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term><option>list-recursively</option></term>
|
|
|
|
<listitem><para>
|
2011-02-23 06:13:39 +01:00
|
|
|
Lists keys and values, recursively. If no <replaceable>SCHEMA</replaceable>
|
|
|
|
is given, list keys in all schemas.
|
2011-01-22 00:02:05 +01:00
|
|
|
</para></listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term><option>help</option></term>
|
|
|
|
<listitem><para>
|
|
|
|
Prints help and exits.
|
|
|
|
</para></listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2010-04-22 07:15:54 +02:00
|
|
|
</variablelist>
|
|
|
|
|
|
|
|
</refsect1>
|
|
|
|
</refentry>
|