OLD | NEW |
(Empty) | |
| 1 <html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859
-1"><title>xdg-settings</title><meta name="generator" content="DocBook XSL Style
sheets V1.75.2"></head><body bgcolor="white" text="black" link="#0000FF" vlink="
#840084" alink="#0000FF"><div class="refentry" title="xdg-settings"><a name="xdg
-settings"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2
><p>xdg-settings — get various settings from the desktop environment</p></
div><div class="refsynopsisdiv" title="Synopsis"><h2>Synopsis</h2><div class="cm
dsynopsis"><p><code class="command">xdg-settings</code> { <code class="option">
<em class="replaceable"><code>get</code></em></code> | <code class="option"><
em class="replaceable"><code>check</code></em></code> | <code class="option">
<em class="replaceable"><code>set</code></em></code> } {<code class="option">pro
perty</code>} [<code class="option">value</code>]</p></div><div class="cmdsynops
is"><p><code class="command">xdg-settings</code> { <code class="option">--help<
/code> | <code class="option">--list</code> | <code class="option">--manua
l</code> | <code class="option">--version</code> }</p></div></div><div class=
"refsect1" title="Description"><a name="description"></a><h2>Description</h2><p> |
| 2 xdg-settings gets various settings from the desktop environment. |
| 3 For instance, desktop environments often provide proxy configuration |
| 4 and default web browser settings. Using xdg-settings these parameters |
| 5 can be extracted for use by applications that do not use the desktop |
| 6 environment's libraries (which would use the settings natively). |
| 7 </p><p> |
| 8 xdg-settings is for use inside a desktop session only. |
| 9 It is not recommended to use xdg-settings as root. |
| 10 </p></div><div class="refsect1" title="Options"><a name="options"></a><h2>Op
tions</h2><div class="variablelist"><dl><dt><span class="term"><code class="opti
on">--help</code></span></dt><dd> |
| 11 Show command synopsis. |
| 12 </dd><dt><span class="term"><code class="option">--list</code></span><
/dt><dd> |
| 13 List all properties xdg-settings knows about. |
| 14 </dd><dt><span class="term"><code class="option">--manual</code></span
></dt><dd> |
| 15 Show this manualpage. |
| 16 </dd><dt><span class="term"><code class="option">--version</code></spa
n></dt><dd> |
| 17 Show the xdg-utils version information. |
| 18 </dd></dl></div></div><div class="refsect1" title="Exit Codes"><a name
="exitcodes"></a><h2>Exit Codes</h2><p> |
| 19 An exit code of 0 indicates success while a non-zero exit code |
| 20 indicates failure. The following failure codes can be returned: |
| 21 </p><div class="variablelist"><dl><dt><span class="term"><code class="option
">1</code></span></dt><dd> |
| 22 Error in command line syntax. |
| 23 </dd><dt><span class="term"><code class="option">2</code></span></dt><
dd> |
| 24 One of the files passed on the command line did not exist. |
| 25 </dd><dt><span class="term"><code class="option">3</code></span></dt><
dd> |
| 26 A required tool could not be found. |
| 27 </dd><dt><span class="term"><code class="option">4</code></span></dt><
dd> |
| 28 The action failed. |
| 29 </dd></dl></div></div><div class="refsect1" title="Examples"><a name="
examples"></a><h2>Examples</h2><p> |
| 30 Get the desktop file name of the current default web browser |
| 31 </p><pre class="programlisting"> |
| 32 xdg-settings get default-web-browser |
| 33 </pre><p> |
| 34 </p><p> |
| 35 Check whether the default web browser is firefox.desktop, which can be |
| 36 false even if "get default-web-browser" says that is the current value |
| 37 (if only some of the underlying settings actually reflect that value) |
| 38 </p><pre class="programlisting"> |
| 39 xdg-settings check default-web-browser firefox.desktop |
| 40 </pre><p> |
| 41 </p><p> |
| 42 Set the default web browser to google-chrome.desktop |
| 43 </p><pre class="programlisting"> |
| 44 xdg-settings set default-web-browser google-chrome.desktop |
| 45 </pre><p> |
| 46 </p></div></div></body></html> |
OLD | NEW |