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