diff options
author | Waldo Bastian <waldo.bastian@intel.com> | 2006-07-20 22:43:25 +0000 |
---|---|---|
committer | Waldo Bastian <waldo.bastian@intel.com> | 2006-07-20 22:43:25 +0000 |
commit | 2997f21ec48a6fa5481b1b3479f9dc243552dc4d (patch) | |
tree | 5e766f3377e09dbc8c062fc109472971e5c8c240 /scripts | |
parent | 9b155544d4e82961c046ef771046a29b6666c626 (diff) |
Update generated files
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/README | 27 | ||||
-rw-r--r-- | scripts/html/xdg-desktop-icon.html | 10 | ||||
-rw-r--r-- | scripts/html/xdg-desktop-menu.html | 8 | ||||
-rw-r--r-- | scripts/html/xdg-email.html | 2 | ||||
-rw-r--r-- | scripts/html/xdg-icon-resource.html | 10 | ||||
-rw-r--r-- | scripts/html/xdg-mime.html | 8 | ||||
-rw-r--r-- | scripts/html/xdg-open.html | 2 | ||||
-rw-r--r-- | scripts/html/xdg-su.html | 2 | ||||
-rw-r--r-- | scripts/man/xdg-desktop-icon.1 | 201 | ||||
-rw-r--r-- | scripts/man/xdg-desktop-menu.1 | 8 | ||||
-rw-r--r-- | scripts/man/xdg-email.1 | 150 | ||||
-rw-r--r-- | scripts/man/xdg-icon-resource.1 | 202 | ||||
-rw-r--r-- | scripts/man/xdg-mime.1 | 8 | ||||
-rw-r--r-- | scripts/man/xdg-open.1 | 108 | ||||
-rw-r--r-- | scripts/man/xdg-screensaver.1 | 2 | ||||
-rw-r--r-- | scripts/man/xdg-su.1 | 112 | ||||
-rwxr-xr-x | scripts/xdg-desktop-icon | 231 | ||||
-rwxr-xr-x | scripts/xdg-desktop-menu | 28 | ||||
-rwxr-xr-x | scripts/xdg-email | 144 | ||||
-rwxr-xr-x | scripts/xdg-icon-resource | 202 | ||||
-rwxr-xr-x | scripts/xdg-mime | 48 | ||||
-rwxr-xr-x | scripts/xdg-open | 76 | ||||
-rwxr-xr-x | scripts/xdg-screensaver | 41 | ||||
-rwxr-xr-x | scripts/xdg-su | 4 |
24 files changed, 776 insertions, 858 deletions
diff --git a/scripts/README b/scripts/README index 240922e..201190d 100644 --- a/scripts/README +++ b/scripts/README @@ -1,26 +1,19 @@ - xdg-desktop-menu -- command line tool for (un)installing desktop menu - items +xdg-desktop-menu — command line tool for (un)installing desktop menu items - xdg-desktop-icon -- command line tool for (un)installing icons to the - desktop +xdg-desktop-icon — command line tool for (un)installing icons to the desktop - xdg-mime -- command line tool for querying information about file type - handling and adding descriptions for new file types +xdg-mime — command line tool for querying information about file type handling +and adding descriptions for new file types - xdg-icon-resource -- command line tool for (un)installing icon resources +xdg-icon-resource — command line tool for (un)installing icon resources - xdg-open -- opens a file or URL in the user's preferred application +xdg-open — opens a file or URL in the user's preferred application - xdg-email -- command line tool for sending mail using the user's preferred - e-mail composer +xdg-email — command line tool for sending mail using the user's preferred +e-mail composer - xdg-su -- run a program as root after prompting for the root password +xdg-su — run a program as root after prompting for the root password - xdg-screensaver -- command line tool for controlling the screensaver - - xdg-copy -- command line tool for copying files between desktop URIs - - xdg-file-dialog -- command line tool for providing file and directory - selection dialogs +xdg-screensaver — command line tool for controlling the screensaver diff --git a/scripts/html/xdg-desktop-icon.html b/scripts/html/xdg-desktop-icon.html index bcbbfa6..d9de6e9 100644 --- a/scripts/html/xdg-desktop-icon.html +++ b/scripts/html/xdg-desktop-icon.html @@ -1,4 +1,4 @@ -<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>xdg-desktop-icon</title><meta name="generator" content="DocBook XSL Stylesheets V1.68.1"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry" lang="en"><a name="xdg-desktop-icon"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>xdg-desktop-icon — command line tool for (un)installing icons to the desktop</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="cmdsynopsis"><p><code class="command">xdg-desktop-icon</code> install [<code class="option">--vendor <em class="replaceable"><code>vendor-id</code></em></code>] <em class="replaceable"><code>FILE</code></em> </p></div><div class="cmdsynopsis"><p><code class="command">xdg-desktop-icon</code> uninstall [<code class="option">--vendor <em class="replaceable"><code>vendor-id</code></em></code>] <em class="replaceable"><code>FILE</code></em> </p></div><div class="cmdsynopsis"><p><code class="command">xdg-desktop-icon</code> { <code class="option">--help</code> | <code class="option">--manual</code> | <code class="option">--version</code> }</p></div></div><div class="refsect1" lang="en"><a name="description"></a><h2>Description</h2><p> +<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>xdg-desktop-icon</title><meta name="generator" content="DocBook XSL Stylesheets V1.69.1"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry" lang="en"><a name="xdg-desktop-icon"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>xdg-desktop-icon — command line tool for (un)installing icons to the desktop</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="cmdsynopsis"><p><code class="command">xdg-desktop-icon</code> install [<code class="option">--vendor <em class="replaceable"><code>vendor-id</code></em></code>] <em class="replaceable"><code>FILE</code></em> </p></div><div class="cmdsynopsis"><p><code class="command">xdg-desktop-icon</code> uninstall [<code class="option">--vendor <em class="replaceable"><code>vendor-id</code></em></code>] <em class="replaceable"><code>FILE</code></em> </p></div><div class="cmdsynopsis"><p><code class="command">xdg-desktop-icon</code> { <code class="option">--help</code> | <code class="option">--manual</code> | <code class="option">--version</code> }</p></div></div><div class="refsect1" lang="en"><a name="description"></a><h2>Description</h2><p> The xdg-desktop-icon program can be used to install an application launcher or other file on the desktop of the current user. </p><p> @@ -73,7 +73,13 @@ </dd></dl></div><p> For a complete oveview of the *.desktop file format please visit http://www.freedesktop.org/wiki/Standards/desktop-entry-spec - </p></div><div class="refsect1" lang="en"><a name="exitcodes"></a><h2>Exit Codes</h2><p> + </p></div><div class="refsect1" lang="en"><a name="env_vars"></a><h2>Environment Variables</h2><p> + xdg-desktop-icon honours the following environment variables: + </p><div class="variablelist"><dl><dt><span class="term">XDG_UTILS_DEBUG_LEVEL</span></dt><dd> + Setting this environment variable to a non-zero numerical value + makes xdg-desktop-icon do more verbose reporting on stderr. + Setting a higher value increases the verbosity. + </dd></dl></div></div><div class="refsect1" lang="en"><a name="exitcodes"></a><h2>Exit Codes</h2><p> An exit code of 0 indicates success while a non-zero exit code indicates failure. The following failure codes can be returned: </p><div class="variablelist"><dl><dt><span class="term"><code class="option">1</code></span></dt><dd> diff --git a/scripts/html/xdg-desktop-menu.html b/scripts/html/xdg-desktop-menu.html index 56d6b4e..e8c65aa 100644 --- a/scripts/html/xdg-desktop-menu.html +++ b/scripts/html/xdg-desktop-menu.html @@ -106,7 +106,13 @@ </dd></dl></div><p> For a complete oveview of the *.desktop file format please visit http://www.freedesktop.org/wiki/Standards/desktop-entry-spec - </p></div><div class="refsect1" lang="en"><a name="exitcodes"></a><h2>Exit Codes</h2><p> + </p></div><div class="refsect1" lang="en"><a name="env_vars"></a><h2>Environment Variables</h2><p> + xdg-desktop-menu honours the following environment variables: + </p><div class="variablelist"><dl><dt><span class="term">XDG_UTILS_DEBUG_LEVEL</span></dt><dd> + Setting this environment variable to a non-zero numerical value + makes xdg-desktop-menu do more verbose reporting on stderr. + Setting a higher value increases the verbosity. + </dd></dl></div></div><div class="refsect1" lang="en"><a name="exitcodes"></a><h2>Exit Codes</h2><p> An exit code of 0 indicates success while a non-zero exit code indicates failure. The following failure codes can be returned: </p><div class="variablelist"><dl><dt><span class="term"><code class="option">1</code></span></dt><dd> diff --git a/scripts/html/xdg-email.html b/scripts/html/xdg-email.html index 74f3d4a..148e880 100644 --- a/scripts/html/xdg-email.html +++ b/scripts/html/xdg-email.html @@ -1,4 +1,4 @@ -<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>xdg-email</title><meta name="generator" content="DocBook XSL Stylesheets V1.68.1"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry" lang="en"><a name="xdg-email"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>xdg-email — command line tool for sending mail using the user's preferred e-mail composer</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="cmdsynopsis"><p><code class="command">xdg-email</code> [<code class="option">--utf8</code>] [<code class="option">--cc</code> <em class="replaceable"><code>address</code></em>] [<code class="option">--bcc</code> <em class="replaceable"><code>address</code></em>] [<code class="option">--subject</code> <em class="replaceable"><code>text</code></em>] [<code class="option">--body</code> <em class="replaceable"><code>text</code></em>] [<code class="option">--attach</code> <em class="replaceable"><code>file</code></em>] { <em class="replaceable"><code>mailto-uri</code></em> | <em class="replaceable"><code>address(es)</code></em> }</p></div><div class="cmdsynopsis"><p><code class="command">xdg-email</code> { <code class="option">--help</code> | <code class="option">--manual</code> | <code class="option">--version</code> }</p></div></div><div class="refsect1" lang="en"><a name="description"></a><h2>Description</h2><p> +<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>xdg-email</title><meta name="generator" content="DocBook XSL Stylesheets V1.69.1"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry" lang="en"><a name="xdg-email"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>xdg-email — command line tool for sending mail using the user's preferred e-mail composer</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="cmdsynopsis"><p><code class="command">xdg-email</code> [<code class="option">--utf8</code>] [<code class="option">--cc</code> <em class="replaceable"><code>address</code></em>] [<code class="option">--bcc</code> <em class="replaceable"><code>address</code></em>] [<code class="option">--subject</code> <em class="replaceable"><code>text</code></em>] [<code class="option">--body</code> <em class="replaceable"><code>text</code></em>] [<code class="option">--attach</code> <em class="replaceable"><code>file</code></em>] { <em class="replaceable"><code>mailto-uri</code></em> | <em class="replaceable"><code>address(es)</code></em> }</p></div><div class="cmdsynopsis"><p><code class="command">xdg-email</code> { <code class="option">--help</code> | <code class="option">--manual</code> | <code class="option">--version</code> }</p></div></div><div class="refsect1" lang="en"><a name="description"></a><h2>Description</h2><p> xdg-email opens the user's preferred e-mail composer in order to send a mail to <em class="replaceable"><code>address(es)</code></em> or <em class="replaceable"><code>mailto-uri</code></em>. RFC2368 defines mailto: diff --git a/scripts/html/xdg-icon-resource.html b/scripts/html/xdg-icon-resource.html index 2fa4bc4..d260585 100644 --- a/scripts/html/xdg-icon-resource.html +++ b/scripts/html/xdg-icon-resource.html @@ -1,4 +1,4 @@ -<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>xdg-icon-resource</title><meta name="generator" content="DocBook XSL Stylesheets V1.68.1"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry" lang="en"><a name="xdg-icon-resource"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>xdg-icon-resource — command line tool for (un)installing icon resources</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="cmdsynopsis"><p><code class="command">xdg-icon-resource</code> install [<code class="option">--noupdate</code>] [<code class="option">--theme <em class="replaceable"><code>theme</code></em></code>] [<code class="option">--context <em class="replaceable"><code>context</code></em></code>] [<code class="option">--size <em class="replaceable"><code>size</code></em></code>] { <code class="option">--user</code> | <code class="option">--system</code> } <em class="replaceable"><code>icon-file</code></em> [<em class="replaceable"><code>icon-name</code></em>]</p></div><div class="cmdsynopsis"><p><code class="command">xdg-icon-resource</code> uninstall [<code class="option">--noupdate</code>] [<code class="option">--theme <em class="replaceable"><code>theme</code></em></code>] [<code class="option">--context <em class="replaceable"><code>context</code></em></code>] [<code class="option">--size <em class="replaceable"><code>size</code></em></code>] { <code class="option">--user</code> | <code class="option">--system</code> } <em class="replaceable"><code>icon-name</code></em> </p></div><div class="cmdsynopsis"><p><code class="command">xdg-icon-resource</code> forceupdate [<code class="option">--theme <em class="replaceable"><code>theme</code></em></code>] { --user | --system }</p></div><div class="cmdsynopsis"><p><code class="command">xdg-icon-resource</code> { <code class="option">--help</code> | <code class="option">--manual</code> | <code class="option">--version</code> }</p></div></div><div class="refsect1" lang="en"><a name="description"></a><h2>Description</h2><p> +<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>xdg-icon-resource</title><meta name="generator" content="DocBook XSL Stylesheets V1.69.1"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry" lang="en"><a name="xdg-icon-resource"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>xdg-icon-resource — command line tool for (un)installing icon resources</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="cmdsynopsis"><p><code class="command">xdg-icon-resource</code> install [<code class="option">--noupdate</code>] [<code class="option">--theme <em class="replaceable"><code>theme</code></em></code>] [<code class="option">--context <em class="replaceable"><code>context</code></em></code>] [<code class="option">--size <em class="replaceable"><code>size</code></em></code>] { <code class="option">--user</code> | <code class="option">--system</code> } <em class="replaceable"><code>icon-file</code></em> [<em class="replaceable"><code>icon-name</code></em>]</p></div><div class="cmdsynopsis"><p><code class="command">xdg-icon-resource</code> uninstall [<code class="option">--noupdate</code>] [<code class="option">--theme <em class="replaceable"><code>theme</code></em></code>] [<code class="option">--context <em class="replaceable"><code>context</code></em></code>] [<code class="option">--size <em class="replaceable"><code>size</code></em></code>] { <code class="option">--user</code> | <code class="option">--system</code> } <em class="replaceable"><code>icon-name</code></em> </p></div><div class="cmdsynopsis"><p><code class="command">xdg-icon-resource</code> forceupdate [<code class="option">--theme <em class="replaceable"><code>theme</code></em></code>] { --user | --system }</p></div><div class="cmdsynopsis"><p><code class="command">xdg-icon-resource</code> { <code class="option">--help</code> | <code class="option">--manual</code> | <code class="option">--version</code> }</p></div></div><div class="refsect1" lang="en"><a name="description"></a><h2>Description</h2><p> The xdg-icon-resource program can be used to install icon resources into the desktop icon system in order to illustrate menu entries, to depict desktop icons or to graphically represent file types. @@ -67,7 +67,13 @@ Show this manualpage. </dd><dt><span class="term"><code class="option">--version</code></span></dt><dd> Show the xdg-utils version information. - </dd></dl></div></div><div class="refsect1" lang="en"><a name="exitcodes"></a><h2>Exit Codes</h2><p> + </dd></dl></div></div><div class="refsect1" lang="en"><a name="env_vars"></a><h2>Environment Variables</h2><p> + xdg-icon-resource honours the following environment variables: + </p><div class="variablelist"><dl><dt><span class="term">XDG_UTILS_DEBUG_LEVEL</span></dt><dd> + Setting this environment variable to a non-zero numerical value + makes xdg-icon-resource do more verbose reporting on stderr. + Setting a higher value increases the verbosity. + </dd></dl></div></div><div class="refsect1" lang="en"><a name="exitcodes"></a><h2>Exit Codes</h2><p> An exit code of 0 indicates success while a non-zero exit code indicates failure. The following failure codes can be returned: </p><div class="variablelist"><dl><dt><span class="term"><code class="option">1</code></span></dt><dd> diff --git a/scripts/html/xdg-mime.html b/scripts/html/xdg-mime.html index b41ad3a..a0b1038 100644 --- a/scripts/html/xdg-mime.html +++ b/scripts/html/xdg-mime.html @@ -68,7 +68,13 @@ and adding descriptions for new file types</p></div><div class="refsynopsisdiv"> Show this manualpage. </dd><dt><span class="term"><code class="option">--version</code></span></dt><dd> Show the xdg-utils version information. - </dd></dl></div></div><div class="refsect1" lang="en"><a name="exitcodes"></a><h2>Exit Codes</h2><p> + </dd></dl></div></div><div class="refsect1" lang="en"><a name="env_vars"></a><h2>Environment Variables</h2><p> + xdg-mime honours the following environment variables: + </p><div class="variablelist"><dl><dt><span class="term">XDG_UTILS_DEBUG_LEVEL</span></dt><dd> + Setting this environment variable to a non-zero numerical value + makes xdg-mime do more verbose reporting on stderr. + Setting a higher value increases the verbosity. + </dd></dl></div></div><div class="refsect1" lang="en"><a name="exitcodes"></a><h2>Exit Codes</h2><p> An exit code of 0 indicates success while a non-zero exit code indicates failure. The following failure codes can be returned: </p><div class="variablelist"><dl><dt><span class="term"><code class="option">1</code></span></dt><dd> diff --git a/scripts/html/xdg-open.html b/scripts/html/xdg-open.html index bbe3874..8c19e90 100644 --- a/scripts/html/xdg-open.html +++ b/scripts/html/xdg-open.html @@ -1,4 +1,4 @@ -<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>xdg-open</title><meta name="generator" content="DocBook XSL Stylesheets V1.68.1"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry" lang="en"><a name="xdg-open"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>xdg-open — opens a file or URL in the user's preferred application</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="cmdsynopsis"><p><code class="command">xdg-open</code> { <code class="option"><em class="replaceable"><code>file</code></em></code> | <code class="option"><em class="replaceable"><code>URL</code></em></code> }</p></div><div class="cmdsynopsis"><p><code class="command">xdg-open</code> { <code class="option">--help</code> | <code class="option">--manual</code> | <code class="option">--version</code> }</p></div></div><div class="refsect1" lang="en"><a name="description"></a><h2>Description</h2><p> +<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>xdg-open</title><meta name="generator" content="DocBook XSL Stylesheets V1.69.1"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry" lang="en"><a name="xdg-open"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>xdg-open — opens a file or URL in the user's preferred application</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="cmdsynopsis"><p><code class="command">xdg-open</code> { <code class="option"><em class="replaceable"><code>file</code></em></code> | <code class="option"><em class="replaceable"><code>URL</code></em></code> }</p></div><div class="cmdsynopsis"><p><code class="command">xdg-open</code> { <code class="option">--help</code> | <code class="option">--manual</code> | <code class="option">--version</code> }</p></div></div><div class="refsect1" lang="en"><a name="description"></a><h2>Description</h2><p> xdg-open opens a file or URL in the user's preferred application. If a URL is provided the URL will be opened in the user's preferred web browser. If a file is provided the file will be opened in the diff --git a/scripts/html/xdg-su.html b/scripts/html/xdg-su.html index ae9f16a..82bb571 100644 --- a/scripts/html/xdg-su.html +++ b/scripts/html/xdg-su.html @@ -1,4 +1,4 @@ -<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>xdg-su</title><meta name="generator" content="DocBook XSL Stylesheets V1.68.1"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry" lang="en"><a name="xdg-su"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>xdg-su — run a program as root after prompting for the root password</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="cmdsynopsis"><p><code class="command">xdg-su</code> [<code class="option">-u <em class="replaceable"><code>user</code></em></code>] <code class="option">-c <em class="replaceable"><code>command</code></em></code> </p></div><div class="cmdsynopsis"><p><code class="command">xdg-su</code> { <code class="option">--help</code> | <code class="option">--manual</code> | <code class="option">--version</code> }</p></div></div><div class="refsect1" lang="en"><a name="description"></a><h2>Description</h2><p> +<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>xdg-su</title><meta name="generator" content="DocBook XSL Stylesheets V1.69.1"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry" lang="en"><a name="xdg-su"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>xdg-su — run a program as root after prompting for the root password</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="cmdsynopsis"><p><code class="command">xdg-su</code> [<code class="option">-u <em class="replaceable"><code>user</code></em></code>] <code class="option">-c <em class="replaceable"><code>command</code></em></code> </p></div><div class="cmdsynopsis"><p><code class="command">xdg-su</code> { <code class="option">--help</code> | <code class="option">--manual</code> | <code class="option">--version</code> }</p></div></div><div class="refsect1" lang="en"><a name="description"></a><h2>Description</h2><p> xdg-su provides a graphical dialog that prompts the user for a password to run <em class="replaceable"><code>command</code></em> as <em class="replaceable"><code>user</code></em> or as root if no user was specified. diff --git a/scripts/man/xdg-desktop-icon.1 b/scripts/man/xdg-desktop-icon.1 index 0f915f9..c752308 100644 --- a/scripts/man/xdg-desktop-icon.1 +++ b/scripts/man/xdg-desktop-icon.1 @@ -1,157 +1,126 @@ -.\"Generated by db2man.xsl. Don't modify this, modify the source. -.de Sh \" Subsection -.br -.if t .Sp -.ne 5 -.PP -\fB\\$1\fR -.PP -.. -.de Sp \" Vertical space (when we can't use .PP) -.if t .sp .5v -.if n .sp -.. -.de Ip \" List item -.br -.ie \\n(.$>=3 .ne \\$3 -.el .ne 3 -.IP "\\$1" \\$2 -.. -.TH "XDG-DESKTOP-ICON" 1 "" "" "xdg-desktop-icon Manual" -.SH NAME -xdg-desktop-icon \- command line tool for (un)installing icons to the desktop -.SH "SYNOPSIS" +.\" ** You probably do not want to edit this file directly ** +.\" It was generated using the DocBook XSL Stylesheets (version 1.69.1). +.\" Instead of manually editing it, you probably should edit the DocBook XML +.\" source for it and then use the DocBook XSL Stylesheets to regenerate it. +.TH "XDG\-DESKTOP\-ICON" "1" "07/17/2006" "This is release 0.5 of the xdg\-desktop\-i" "" +.\" disable hyphenation +.nh +.\" disable justification (adjust text to left margin only) .ad l -.hy 0 +.SH "NAME" +xdg\-desktop\-icon \- command line tool for (un)installing icons to the desktop +.SH "SYNOPSIS" .HP 17 -\fBxdg\-desktop\-icon\fR install [\fB\-\-vendor\ \fIvendor\-id\fR\fR] \fIFILE\fR -.ad -.hy -.ad l -.hy 0 +\fBxdg\-desktop\-icon\fR install [\fB\-\-vendor\ \fR\fB\fIvendor\-id\fR\fR] \fIFILE\fR .HP 17 -\fBxdg\-desktop\-icon\fR uninstall [\fB\-\-vendor\ \fIvendor\-id\fR\fR] \fIFILE\fR -.ad -.hy -.ad l -.hy 0 +\fBxdg\-desktop\-icon\fR uninstall [\fB\-\-vendor\ \fR\fB\fIvendor\-id\fR\fR] \fIFILE\fR .HP 17 -\fBxdg\-desktop\-icon\fR {\fB\fB\-\-help\fR\fR | \fB\fB\-\-manual\fR\fR | \fB\fB\-\-version\fR\fR} -.ad -.hy - +\fBxdg\-desktop\-icon\fR {\fB\-\-help\fR \fB\-\-manual\fR \fB\-\-version\fR} .SH "DESCRIPTION" - .PP -The xdg\-desktop\-icon program can be used to install an application launcher or other file on the desktop of the current user\&. - +The xdg\-desktop\-icon program can be used to install an application launcher or other file on the desktop of the current user. .PP -An application launcher is represented by a *\&.desktop file\&. Desktop files are defined by the freedesktop\&.org Desktop Entry Specification\&. The most important aspects of *\&.desktop files are summarized below\&. - +An application launcher is represented by a *.desktop file. Desktop files are defined by the freedesktop.org Desktop Entry Specification. The most important aspects of *.desktop files are summarized below. .SH "COMMANDS" - .TP install -Installs \fIFILE\fR to the desktop of the current user\&. \fIFILE\fR can be a *\&.desktop file or any other type of file\&. - +Installs +\fIFILE\fR +to the desktop of the current user. +\fIFILE\fR +can be a *.desktop file or any other type of file. .TP uninstall -Removes \fIFILE\fR from the desktop of the current user\&. - +Removes +\fIFILE\fR +from the desktop of the current user. .SH "OPTIONS" - .TP \fB\-\-vendor\fR \fIvendor\-id\fR -Adds \fIvendor\-id\fR as a prefix when installing desktop files\&. - +Adds +\fIvendor\-id\fR +as a prefix when installing desktop files. .TP \fB\-\-help\fR -Show command synopsis\&. - +Show command synopsis. .TP \fB\-\-manual\fR -Show this manualpage\&. - +Show this manualpage. .TP \fB\-\-version\fR -Show the xdg\-utils version information\&. - +Show the xdg\-utils version information. .SH "DESKTOP FILES" - .PP -An application launcher can be added to the desktop by installing a *\&.desktop file\&. A *\&.desktop file consists of a \fI[Desktop Entry]\fR header followed by several \fIKey\fR=\fIValue\fR lines\&. - +An application launcher can be added to the desktop by installing a *.desktop file. A *.desktop file consists of a +\fI[Desktop Entry]\fR +header followed by several +\fIKey\fR=\fIValue\fR +lines. .PP -A *\&.desktop file can provide a name and description for an application in several different languages\&. This is done by adding a language code as used by LC_MESSAGES in square brackets behind the \fIKey\fR\&. This way one can specify different values for the same \fIKey\fR depending on the currently selected language\&. - +A *.desktop file can provide a name and description for an application in several different languages. This is done by adding a language code as used by LC_MESSAGES in square brackets behind the +\fIKey\fR. This way one can specify different values for the same +\fIKey\fR +depending on the currently selected language. .PP The following keys are often used: - .TP -Value=1\&.0 -This is a mandatory field to indicate that the *\&.desktop file follows the 1\&.0 version of the specification\&. - +Value=1.0 +This is a mandatory field to indicate that the *.desktop file follows the 1.0 version of the specification. .TP Type=Application -This is a mandatory field that indicates that the *\&.desktop file describes an application launcher\&. - +This is a mandatory field that indicates that the *.desktop file describes an application launcher. .TP Name=\fIApplication Name\fR -The name of the application\&. For example \fIMozilla\fR - +The name of the application. For example +\fIMozilla\fR .TP GenericName=\fIGeneric Name\fR -A generic description of the application\&. For example \fIWeb Browser\fR - +A generic description of the application. For example +\fIWeb Browser\fR .TP Comment=\fIComment\fR -Optional field to specify a tooltip for the application\&. For example \fIVisit websites on the Internet\fR - +Optional field to specify a tooltip for the application. For example +\fIVisit websites on the Internet\fR .TP Icon=\fIIcon File\fR -The icon to use for the application\&. This can either be an absolute path to an image file or an icon\-name\&. If an icon\-name is provided an image lookup by name is done in the user's current icon theme\&. The \fBxdg\-icon\-resource\fR command can be used to install image files into icon themes\&. The advantage of using an icon\-name instead of an absolute path is that with an icon\-name the application icon can be provided in several different sizes as well as in several differently themed styles\&. - +The icon to use for the application. This can either be an absolute path to an image file or an icon\-name. If an icon\-name is provided an image lookup by name is done in the user's current icon theme. The +\fBxdg\-icon\-resource\fR +command can be used to install image files into icon themes. The advantage of using an icon\-name instead of an absolute path is that with an icon\-name the application icon can be provided in several different sizes as well as in several differently themed styles. .TP Exec=\fICommand Line\fR -The command line to start the application\&. If the application can open files the %f placeholder should be specified\&. When a file is dropped on the application launcher the %f is replaced with the file path of the dropped file\&. If multiple files can be specified on the command line the %F placeholder should be used instead of %f\&. If the application is able to open URLs in addition to local files then %u or %U can be used instead of %f or %F\&. - +The command line to start the application. If the application can open files the %f placeholder should be specified. When a file is dropped on the application launcher the %f is replaced with the file path of the dropped file. If multiple files can be specified on the command line the %F placeholder should be used instead of %f. If the application is able to open URLs in addition to local files then %u or %U can be used instead of %f or %F. .PP -For a complete oveview of the *\&.desktop file format please visit http://www\&.freedesktop\&.org/wiki/Standards/desktop\-entry\-spec - +For a complete oveview of the *.desktop file format please visit http://www.freedesktop.org/wiki/Standards/desktop\-entry\-spec +.SH "ENVIRONMENT VARIABLES" +.PP +xdg\-desktop\-icon honours the following environment variables: +.TP +XDG_UTILS_DEBUG_LEVEL +Setting this environment variable to a non\-zero numerical value makes xdg\-desktop\-icon do more verbose reporting on stderr. Setting a higher value increases the verbosity. .SH "EXIT CODES" - .PP -An exit code of 0 indicates success while a non\-zero exit code indicates failure\&. The following failure codes can be returned: - +An exit code of 0 indicates success while a non\-zero exit code indicates failure. The following failure codes can be returned: .TP \fB1\fR -Error in command line syntax\&. - +Error in command line syntax. .TP \fB2\fR -One of the files passed on the command line did not exist\&. - +One of the files passed on the command line did not exist. .TP \fB3\fR -A required tool could not be found\&. - +A required tool could not be found. .TP \fB4\fR -The action failed\&. - +The action failed. .SH "SEE ALSO" - .PP -\fBxdg\-icon\-resource\fR(1) - +\fBxdg\-icon\-resource\fR(1) .SH "EXAMPLES" - .PP -The company ShinyThings Inc\&. has developed an application named "WebMirror" and would like to add a launcher for for on the desktop\&. The company will use "shinythings" as its vendor id\&. In order to add the application to the desktop there needs to be a \&.desktop file for the application: - +The company ShinyThings Inc. has developed an application named "WebMirror" and would like to add a launcher for for on the desktop. The company will use "shinythings" as its vendor id. In order to add the application to the desktop there needs to be a .desktop file for the application: +.sp .nf - -webmirror\&.desktop: +webmirror.desktop: [Desktop Entry] Encoding=UTF\-8 @@ -162,29 +131,25 @@ webmirror\&.desktop: Name=WebMirror Name[nl]=WebSpiegel - .fi - - +.sp .PP -Now the xdg\-desktop\-icon tool can be used to add the webmirror\&.desktop file to the desktop: - +Now the xdg\-desktop\-icon tool can be used to add the webmirror.desktop file to the desktop: +.sp .nf - -xdg\-desktop\-icon install \-\-vendor shinythings \&./webmirror\&.desktop - +xdg\-desktop\-icon install \-\-vendor shinythings ./webmirror.desktop .fi - - +.sp .PP -To add a README file to the desktop as well, the following command can be used: - +To add a README file to the desktop as well, the following command can be used: +.sp .nf - -xdg\-desktop\-icon install \&./shinythings\-README - +xdg\-desktop\-icon install ./shinythings\-README .fi - - -.SH AUTHORS -Kevin Krammer, Jeremy White. +.sp +.SH "AUTHOR" +Kevin Krammer, Jeremy White. +.br +<kevin.krammer@gmx.at> +.br +<jwhite@codeweavers.com> diff --git a/scripts/man/xdg-desktop-menu.1 b/scripts/man/xdg-desktop-menu.1 index 4821af7..3631291 100644 --- a/scripts/man/xdg-desktop-menu.1 +++ b/scripts/man/xdg-desktop-menu.1 @@ -2,7 +2,7 @@ .\" It was generated using the DocBook XSL Stylesheets (version 1.69.1). .\" Instead of manually editing it, you probably should edit the DocBook XML .\" source for it and then use the DocBook XSL Stylesheets to regenerate it. -.TH "XDG\-DESKTOP\-MENU" "1" "07/13/2006" "This is release 0.5 of the xdg\-desktop\-m" "" +.TH "XDG\-DESKTOP\-MENU" "1" "07/17/2006" "This is release 0.5 of the xdg\-desktop\-m" "" .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) @@ -120,6 +120,12 @@ MimeType=\fIMimetypes\fR A list of mimetypes separated by semi\-colons. This field is used to indicate which file types the application is able to open. .PP For a complete oveview of the *.desktop file format please visit http://www.freedesktop.org/wiki/Standards/desktop\-entry\-spec +.SH "ENVIRONMENT VARIABLES" +.PP +xdg\-desktop\-menu honours the following environment variables: +.TP +XDG_UTILS_DEBUG_LEVEL +Setting this environment variable to a non\-zero numerical value makes xdg\-desktop\-menu do more verbose reporting on stderr. Setting a higher value increases the verbosity. .SH "EXIT CODES" .PP An exit code of 0 indicates success while a non\-zero exit code indicates failure. The following failure codes can be returned: diff --git a/scripts/man/xdg-email.1 b/scripts/man/xdg-email.1 index 87372f9..af063f7 100644 --- a/scripts/man/xdg-email.1 +++ b/scripts/man/xdg-email.1 @@ -1,144 +1,102 @@ -.\"Generated by db2man.xsl. Don't modify this, modify the source. -.de Sh \" Subsection -.br -.if t .Sp -.ne 5 -.PP -\fB\\$1\fR -.PP -.. -.de Sp \" Vertical space (when we can't use .PP) -.if t .sp .5v -.if n .sp -.. -.de Ip \" List item -.br -.ie \\n(.$>=3 .ne \\$3 -.el .ne 3 -.IP "\\$1" \\$2 -.. -.TH "XDG-EMAIL" 1 "" "" "xdg-email Manual" -.SH NAME -xdg-email \- command line tool for sending mail using the user's preferred e-mail composer -.SH "SYNOPSIS" +.\" ** You probably do not want to edit this file directly ** +.\" It was generated using the DocBook XSL Stylesheets (version 1.69.1). +.\" Instead of manually editing it, you probably should edit the DocBook XML +.\" source for it and then use the DocBook XSL Stylesheets to regenerate it. +.TH "XDG\-EMAIL" "1" "07/17/2006" "This is release 0.5 of the xdg\-email Man" "" +.\" disable hyphenation +.nh +.\" disable justification (adjust text to left margin only) .ad l -.hy 0 +.SH "NAME" +xdg\-email \- command line tool for sending mail using the user's preferred e\-mail composer +.SH "SYNOPSIS" .HP 10 -\fBxdg\-email\fR [\fB\-\-utf8\fR] [\fB\-\-cc\fR\ \fIaddress\fR] [\fB\-\-bcc\fR\ \fIaddress\fR] [\fB\-\-subject\fR\ \fItext\fR] [\fB\-\-body\fR\ \fItext\fR] [\fB\-\-attach\fR\ \fIfile\fR] {\fB\fImailto\-uri\fR\fR | \fB\fIaddress(es)\fR\fR} -.ad -.hy -.ad l -.hy 0 +\fBxdg\-email\fR [\fB\-\-utf8\fR] [\fB\-\-cc\fR\ \fIaddress\fR] [\fB\-\-bcc\fR\ \fIaddress\fR] [\fB\-\-subject\fR\ \fItext\fR] [\fB\-\-body\fR\ \fItext\fR] [\fB\-\-attach\fR\ \fIfile\fR] {\fImailto\-uri\fR \fIaddress(es)\fR} .HP 10 -\fBxdg\-email\fR {\fB\fB\-\-help\fR\fR | \fB\fB\-\-manual\fR\fR | \fB\fB\-\-version\fR\fR} -.ad -.hy - +\fBxdg\-email\fR {\fB\-\-help\fR \fB\-\-manual\fR \fB\-\-version\fR} .SH "DESCRIPTION" - .PP -xdg\-email opens the user's preferred e\-mail composer in order to send a mail to \fIaddress(es)\fR or \fImailto\-uri\fR\&. RFC2368 defines mailto: URIs\&. xdg\-email limits support to, cc, subject and body fields in \fImailto\-uri\fR, all other fields are silently ignored\&. \fIaddress(es)\fR must follow the syntax of RFC822\&. Multiple addresses may be provided as separate arguments\&. - +xdg\-email opens the user's preferred e\-mail composer in order to send a mail to +\fIaddress(es)\fR +or +\fImailto\-uri\fR. RFC2368 defines mailto: URIs. xdg\-email limits support to, cc, subject and body fields in +\fImailto\-uri\fR, all other fields are silently ignored. +\fIaddress(es)\fR +must follow the syntax of RFC822. Multiple addresses may be provided as separate arguments. .PP -All information provided on the command line is used to prefill corresponding fields in the user's e\-mail composer\&. The user will have the opportunity to change any of this information before actually sending the e\-mail\&. - +All information provided on the command line is used to prefill corresponding fields in the user's e\-mail composer. The user will have the opportunity to change any of this information before actually sending the e\-mail. .PP -xdg\-email is for use inside a desktop session only\&. It is not recommended to use xdg\-email as root\&. - +xdg\-email is for use inside a desktop session only. It is not recommended to use xdg\-email as root. .SH "OPTIONS" - .TP \fB\-\-utf8\fR -Indicates that all command line options that follow are in utf8\&. Without this option, command line options are expected to be encoded according to locale\&. If the locale already specifies utf8 this option has no effect\&. This option does not affect mailto URIs that are passed on the command line\&. - +Indicates that all command line options that follow are in utf8. Without this option, command line options are expected to be encoded according to locale. If the locale already specifies utf8 this option has no effect. This option does not affect mailto URIs that are passed on the command line. .TP \fB\-\-cc\fR \fIaddress\fR -Specify a recipient to be copied on the e\-mail\&. - +Specify a recipient to be copied on the e\-mail. .TP \fB\-\-bcc\fR \fIaddress\fR -Specify a recipient to be blindly copied on the e\-mail\&. - +Specify a recipient to be blindly copied on the e\-mail. .TP \fB\-\-subject\fR \fItext\fR -Specify a subject for the e\-mail\&. - +Specify a subject for the e\-mail. .TP \fB\-\-body\fR \fItext\fR -Specify a body for the e\-mail\&. Since the user will be able to make changes before actually sending the e\-mail, this can be used to provide the user with a template for the e\-mail\&. \fItext\fR may contain linebreaks\&. - +Specify a body for the e\-mail. Since the user will be able to make changes before actually sending the e\-mail, this can be used to provide the user with a template for the e\-mail. +\fItext\fR +may contain linebreaks. .TP \fB\-\-attach\fR \fIfile\fR -Specify an attachment for the e\-mail\&. \fIfile\fR must point to an existing file\&. - +Specify an attachment for the e\-mail. +\fIfile\fR +must point to an existing file. .TP \fB\-\-help\fR -Show command synopsis\&. - +Show command synopsis. .TP \fB\-\-manual\fR -Show this manualpage\&. - +Show this manualpage. .TP \fB\-\-version\fR -Show the xdg\-utils version information\&. - +Show the xdg\-utils version information. .SH "EXIT CODES" - .PP -An exit code of 0 indicates success while a non\-zero exit code indicates failure\&. The following failure codes can be returned: - +An exit code of 0 indicates success while a non\-zero exit code indicates failure. The following failure codes can be returned: .TP \fB1\fR -Error in command line syntax\&. - +Error in command line syntax. .TP \fB2\fR -One of the files passed on the command line did not exist\&. - +One of the files passed on the command line did not exist. .TP \fB3\fR -A required tool could not be found\&. - +A required tool could not be found. .TP \fB4\fR -The action failed\&. - +The action failed. .SH "EXAMPLES" - .PP - - .nf - -xdg\-email 'Jeremy White <jwhite@example\&.com>' - +xdg\-email 'Jeremy White <jwhite@example.com>' .fi - - +.sp .PP - - .nf - -xdg\-email \-\-attach /tmp/logo\&.png \\ +xdg\-email \-\-attach /tmp/logo.png \\ \-\-subject 'Logo contest' \\ - \-\-body 'Attached you find the logo for the contest\&.' \\ - 'jwhite@example\&.com' - + \-\-body 'Attached you find the logo for the contest.' \\ + 'jwhite@example.com' .fi - - +.sp .PP - - .nf - xdg\-email \-\-subject 'Your password is about to expire' \\ - 'jwhite@example\&.com' 'bastian@example\&.com' 'whipple@example\&.com' - + 'jwhite@example.com' 'bastian@example.com' 'whipple@example.com' .fi - - -.SH AUTHORS -Kevin Krammer, Jeremy White. +.sp +.SH "AUTHOR" +Kevin Krammer, Jeremy White. +.br +<kevin.krammer@gmx.at> +.br +<jwhite@codeweavers.com> diff --git a/scripts/man/xdg-icon-resource.1 b/scripts/man/xdg-icon-resource.1 index 5c5fa42..ae32c5b 100644 --- a/scripts/man/xdg-icon-resource.1 +++ b/scripts/man/xdg-icon-resource.1 @@ -1,162 +1,148 @@ -.\"Generated by db2man.xsl. Don't modify this, modify the source. -.de Sh \" Subsection -.br -.if t .Sp -.ne 5 -.PP -\fB\\$1\fR -.PP -.. -.de Sp \" Vertical space (when we can't use .PP) -.if t .sp .5v -.if n .sp -.. -.de Ip \" List item -.br -.ie \\n(.$>=3 .ne \\$3 -.el .ne 3 -.IP "\\$1" \\$2 -.. -.TH "XDG-ICON-RESOURCE" 1 "" "" "xdg-icon-resource Manual" -.SH NAME -xdg-icon-resource \- command line tool for (un)installing icon resources -.SH "SYNOPSIS" +.\" ** You probably do not want to edit this file directly ** +.\" It was generated using the DocBook XSL Stylesheets (version 1.69.1). +.\" Instead of manually editing it, you probably should edit the DocBook XML +.\" source for it and then use the DocBook XSL Stylesheets to regenerate it. +.TH "XDG\-ICON\-RESOURCE" "1" "07/17/2006" "This is release 0.5 of the xdg\-icon\-reso" "" +.\" disable hyphenation +.nh +.\" disable justification (adjust text to left margin only) .ad l -.hy 0 +.SH "NAME" +xdg\-icon\-resource \- command line tool for (un)installing icon resources +.SH "SYNOPSIS" .HP 18 -\fBxdg\-icon\-resource\fR install [\fB\-\-noupdate\fR] [\fB\-\-theme\ \fItheme\fR\fR] [\fB\-\-context\ \fIcontext\fR\fR] [\fB\-\-size\ \fIsize\fR\fR] {\fB\fB\-\-user\fR\fR | \fB\fB\-\-system\fR\fR} \fIicon\-file\fR [\fIicon\-name\fR] -.ad -.hy -.ad l -.hy 0 +\fBxdg\-icon\-resource\fR install [\fB\-\-noupdate\fR] [\fB\-\-theme\ \fR\fB\fItheme\fR\fR] [\fB\-\-context\ \fR\fB\fIcontext\fR\fR] [\fB\-\-size\ \fR\fB\fIsize\fR\fR] {\fB\-\-user\fR \fB\-\-system\fR} \fIicon\-file\fR [\fIicon\-name\fR] .HP 18 -\fBxdg\-icon\-resource\fR uninstall [\fB\-\-noupdate\fR] [\fB\-\-theme\ \fItheme\fR\fR] [\fB\-\-context\ \fIcontext\fR\fR] [\fB\-\-size\ \fIsize\fR\fR] {\fB\fB\-\-user\fR\fR | \fB\fB\-\-system\fR\fR} \fIicon\-name\fR -.ad -.hy -.ad l -.hy 0 +\fBxdg\-icon\-resource\fR uninstall [\fB\-\-noupdate\fR] [\fB\-\-theme\ \fR\fB\fItheme\fR\fR] [\fB\-\-context\ \fR\fB\fIcontext\fR\fR] [\fB\-\-size\ \fR\fB\fIsize\fR\fR] {\fB\-\-user\fR \fB\-\-system\fR} \fIicon\-name\fR .HP 18 -\fBxdg\-icon\-resource\fR forceupdate [\fB\-\-theme\ \fItheme\fR\fR] {\fB\-\-user\fR | \fB\-\-system\fR} -.ad -.hy -.ad l -.hy 0 +\fBxdg\-icon\-resource\fR forceupdate [\fB\-\-theme\ \fR\fB\fItheme\fR\fR] {\-\-user \-\-system} .HP 18 -\fBxdg\-icon\-resource\fR {\fB\fB\-\-help\fR\fR | \fB\fB\-\-manual\fR\fR | \fB\fB\-\-version\fR\fR} -.ad -.hy - +\fBxdg\-icon\-resource\fR {\fB\-\-help\fR \fB\-\-manual\fR \fB\-\-version\fR} .SH "DESCRIPTION" - .PP -The xdg\-icon\-resource program can be used to install icon resources into the desktop icon system in order to illustrate menu entries, to depict desktop icons or to graphically represent file types\&. - +The xdg\-icon\-resource program can be used to install icon resources into the desktop icon system in order to illustrate menu entries, to depict desktop icons or to graphically represent file types. .PP -The desktop icon system identifies icons by name\&. Depending on the required size, the choice of icon theme and the context in which the icon is used, the desktop icon system locates an appropriate icon resource to depict an icon\&. Icon resources can be XPM files, PNG files or SVG files\&. - +The desktop icon system identifies icons by name. Depending on the required size, the choice of icon theme and the context in which the icon is used, the desktop icon system locates an appropriate icon resource to depict an icon. Icon resources can be XPM files, PNG files or SVG files. .PP -The desktop icon system works according to the XDG Icon Theme Specification at http://www\&.freedesktop\&.org/Standards/icon\-theme\-spec - +The desktop icon system works according to the XDG Icon Theme Specification at http://www.freedesktop.org/Standards/icon\-theme\-spec .SH "COMMANDS" - .TP install -Installs the icon file indicated by \fIicon\-file\fR to the desktop icon system under the name \fIicon\-name\fR\&. If \fIicon\-name\fR is not provided the name is derived from \fIicon\-file\fR\&. The icon file must have \fI\&.png\fR, \fI\&.xpm\fR or \fI\&.svg\fR as extension\&. If a corresponding \fI\&.icon\fR file exists in the same location as \fIicon\-file\fR it will be installed as well\&. - +Installs the icon file indicated by +\fIicon\-file\fR +to the desktop icon system under the name +\fIicon\-name\fR. If +\fIicon\-name\fR +is not provided the name is derived from +\fIicon\-file\fR. The icon file must have +\fI.png\fR, +\fI.xpm\fR +or +\fI.svg\fR +as extension. If a corresponding +\fI.icon\fR +file exists in the same location as +\fIicon\-file\fR +it will be installed as well. .TP uninstall -Removes the icon file indicated by \fIicon\-name\fR from the desktop icon system\&. - +Removes the icon file indicated by +\fIicon\-name\fR +from the desktop icon system. .TP forceupdate -Force an update of the desktop icon system\&. This is only useful if the last call to xdg\-icon\-resource included the \fB\-\-noupdate\fR option\&. - +Force an update of the desktop icon system. This is only useful if the last call to xdg\-icon\-resource included the +\fB\-\-noupdate\fR +option. .SH "OPTIONS" - .TP \fB\-\-noupdate\fR -Postpone updating the desktop icon system\&. If multiple icons are added in sequence this flag can be used to indicate that additional changes will follow and that it is not necassery to update the desktop icon system right away\&. - +Postpone updating the desktop icon system. If multiple icons are added in sequence this flag can be used to indicate that additional changes will follow and that it is not necassery to update the desktop icon system right away. .TP \fB\-\-theme\fR \fItheme\fR -Installs or removes the icon file as part of \fItheme\fR\&. If no theme is specified the icons will be installed as part of the default \fIhicolor\fR theme\&. Applications may install icons under multiple themes but should at least install icons for the default \fIhicolor\fR theme\&. - +Installs or removes the icon file as part of +\fItheme\fR. If no theme is specified the icons will be installed as part of the default +\fIhicolor\fR +theme. Applications may install icons under multiple themes but should at least install icons for the default +\fIhicolor\fR +theme. .TP \fB\-\-context\fR \fIcontext\fR -Specifies the context for the icon\&. Icons to be used in the application menu and as desktop icon should use \fIapps\fR as context which is the default context\&. Icons to be used as file icons should use \fImimetypes\fR as context\&. Other common contexts are \fIactions\fR, \fIdevices\fR, \fIemblems\fR, \fIfilesystems\fR and \fIstock\fR\&. - +Specifies the context for the icon. Icons to be used in the application menu and as desktop icon should use +\fIapps\fR +as context which is the default context. Icons to be used as file icons should use +\fImimetypes\fR +as context. Other common contexts are +\fIactions\fR, +\fIdevices\fR, +\fIemblems\fR, +\fIfilesystems\fR +and +\fIstock\fR. .TP \fB\-\-size\fR \fIsize\fR -Specifies the size of the icon (required for png and xpm icons)\&. All icons must be square\&. Common sizes for icons in the apps context are: 16, 22, 32, 48, 64 and 128\&. Common sizes for icons in the mimetypes context are: 16, 22, 32, 48, 64 and 128 - +Specifies the size of the icon (required for png and xpm icons). All icons must be square. Common sizes for icons in the apps context are: 16, 22, 32, 48, 64 and 128. Common sizes for icons in the mimetypes context are: 16, 22, 32, 48, 64 and 128 .TP \fB\-\-user\fR -Installs or uninstalls the icon for the current user only\&. - +Installs or uninstalls the icon for the current user only. .TP \fB\-\-system\fR -Installs or uninstalls the icon for all users on the system\&. Usually only root is allowed to do this\&. - +Installs or uninstalls the icon for all users on the system. Usually only root is allowed to do this. .TP \fB\-\-help\fR -Show command synopsis\&. - +Show command synopsis. .TP \fB\-\-manual\fR -Show this manualpage\&. - +Show this manualpage. .TP \fB\-\-version\fR -Show the xdg\-utils version information\&. - +Show the xdg\-utils version information. +.SH "ENVIRONMENT VARIABLES" +.PP +xdg\-icon\-resource honours the following environment variables: +.TP +XDG_UTILS_DEBUG_LEVEL +Setting this environment variable to a non\-zero numerical value makes xdg\-icon\-resource do more verbose reporting on stderr. Setting a higher value increases the verbosity. .SH "EXIT CODES" - .PP -An exit code of 0 indicates success while a non\-zero exit code indicates failure\&. The following failure codes can be returned: - +An exit code of 0 indicates success while a non\-zero exit code indicates failure. The following failure codes can be returned: .TP \fB1\fR -Error in command line syntax\&. - +Error in command line syntax. .TP \fB2\fR -One of the files passed on the command line did not exist\&. - +One of the files passed on the command line did not exist. .TP \fB3\fR -A required tool could not be found\&. - +A required tool could not be found. .TP \fB4\fR -The action failed\&. - +The action failed. .SH "SEE ALSO" - .PP -\fBxdg\-desktop\-icon\fR(1), \fBxdg\-desktop\-menu\fR(1), \fBxdg\-mime\fR(1) - +\fBxdg\-desktop\-icon\fR(1), +\fBxdg\-desktop\-menu\fR(1), +\fBxdg\-mime\fR(1) .SH "EXAMPLES" - .PP -To install an icon resource to depict a launcher for the application myfoobar one can use: - +To install an icon resource to depict a launcher for the application myfoobar one can use: +.sp .nf - -xdg\-icon\-resource install \-\-system \-\-size 64 myfoobar\&.png - +xdg\-icon\-resource install \-\-system \-\-size 64 myfoobar.png .fi - - +.sp .PP -To install an icon for a new application/x\-foobar file type one can use: - +To install an icon for a new application/x\-foobar file type one can use: +.sp .nf - -xdg\-icon\-resource install \-\-system \-\-context mimetypes \-\-size 48 \&./mime\-foobar\-48\&.png application\-x\-foobar\&.png -xdg\-icon\-resource install \-\-system \-\-context mimetypes \-\-size 64 \&./mime\-foobar\-64\&.png application\-x\-foobar\&.png - +xdg\-icon\-resource install \-\-system \-\-context mimetypes \-\-size 48 ./mime\-foobar\-48.png application\-x\-foobar.png +xdg\-icon\-resource install \-\-system \-\-context mimetypes \-\-size 64 ./mime\-foobar\-64.png application\-x\-foobar.png .fi -This will install two icons with the name application\-x\-foobar\&.png but with different sizes\&. The icons will be installed for use by all users\&. - -.SH AUTHORS -Kevin Krammer, Jeremy White. +.sp +This will install two icons with the name application\-x\-foobar.png but with different sizes. The icons will be installed for use by all users. +.SH "AUTHOR" +Kevin Krammer, Jeremy White. +.br +<kevin.krammer@gmx.at> +.br +<jwhite@codeweavers.com> diff --git a/scripts/man/xdg-mime.1 b/scripts/man/xdg-mime.1 index 276aed1..4c1878c 100644 --- a/scripts/man/xdg-mime.1 +++ b/scripts/man/xdg-mime.1 @@ -2,7 +2,7 @@ .\" It was generated using the DocBook XSL Stylesheets (version 1.69.1). .\" Instead of manually editing it, you probably should edit the DocBook XML .\" source for it and then use the DocBook XSL Stylesheets to regenerate it. -.TH "XDG\-MIME" "1" "07/13/2006" "This is release 0.5 of the xdg\-mime Manu" "" +.TH "XDG\-MIME" "1" "07/17/2006" "This is release 0.5 of the xdg\-mime Manu" "" .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) @@ -96,6 +96,12 @@ Show this manualpage. .TP \fB\-\-version\fR Show the xdg\-utils version information. +.SH "ENVIRONMENT VARIABLES" +.PP +xdg\-mime honours the following environment variables: +.TP +XDG_UTILS_DEBUG_LEVEL +Setting this environment variable to a non\-zero numerical value makes xdg\-mime do more verbose reporting on stderr. Setting a higher value increases the verbosity. .SH "EXIT CODES" .PP An exit code of 0 indicates success while a non\-zero exit code indicates failure. The following failure codes can be returned: diff --git a/scripts/man/xdg-open.1 b/scripts/man/xdg-open.1 index 68ed3d7..a271018 100644 --- a/scripts/man/xdg-open.1 +++ b/scripts/man/xdg-open.1 @@ -1,103 +1,65 @@ -.\"Generated by db2man.xsl. Don't modify this, modify the source. -.de Sh \" Subsection -.br -.if t .Sp -.ne 5 -.PP -\fB\\$1\fR -.PP -.. -.de Sp \" Vertical space (when we can't use .PP) -.if t .sp .5v -.if n .sp -.. -.de Ip \" List item -.br -.ie \\n(.$>=3 .ne \\$3 -.el .ne 3 -.IP "\\$1" \\$2 -.. -.TH "XDG-OPEN" 1 "" "" "xdg-open Manual" -.SH NAME -xdg-open \- opens a file or URL in the user's preferred application -.SH "SYNOPSIS" +.\" ** You probably do not want to edit this file directly ** +.\" It was generated using the DocBook XSL Stylesheets (version 1.69.1). +.\" Instead of manually editing it, you probably should edit the DocBook XML +.\" source for it and then use the DocBook XSL Stylesheets to regenerate it. +.TH "XDG\-OPEN" "1" "07/17/2006" "This is release 0.5 of the xdg\-open Manu" "" +.\" disable hyphenation +.nh +.\" disable justification (adjust text to left margin only) .ad l -.hy 0 +.SH "NAME" +xdg\-open \- opens a file or URL in the user's preferred application +.SH "SYNOPSIS" .HP 9 -\fBxdg\-open\fR {\fB\fB\fIfile\fR\fR\fR | \fB\fB\fIURL\fR\fR\fR} -.ad -.hy -.ad l -.hy 0 +\fBxdg\-open\fR {\fB\fIfile\fR\fR \fB\fIURL\fR\fR} .HP 9 -\fBxdg\-open\fR {\fB\fB\-\-help\fR\fR | \fB\fB\-\-manual\fR\fR | \fB\fB\-\-version\fR\fR} -.ad -.hy - +\fBxdg\-open\fR {\fB\-\-help\fR \fB\-\-manual\fR \fB\-\-version\fR} .SH "DESCRIPTION" - .PP -xdg\-open opens a file or URL in the user's preferred application\&. If a URL is provided the URL will be opened in the user's preferred web browser\&. If a file is provided the file will be opened in the preferred application for files of that type\&. xdg\-open supports file, ftp, http and https URLs\&. - +xdg\-open opens a file or URL in the user's preferred application. If a URL is provided the URL will be opened in the user's preferred web browser. If a file is provided the file will be opened in the preferred application for files of that type. xdg\-open supports file, ftp, http and https URLs. .PP -xdg\-open is for use inside a desktop session only\&. It is not recommended to use xdg\-open as root\&. - +xdg\-open is for use inside a desktop session only. It is not recommended to use xdg\-open as root. .SH "OPTIONS" - .TP \fB\-\-help\fR -Show command synopsis\&. - +Show command synopsis. .TP \fB\-\-manual\fR -Show this manualpage\&. - +Show this manualpage. .TP \fB\-\-version\fR -Show the xdg\-utils version information\&. - +Show the xdg\-utils version information. .SH "EXIT CODES" - .PP -An exit code of 0 indicates success while a non\-zero exit code indicates failure\&. The following failure codes can be returned: - +An exit code of 0 indicates success while a non\-zero exit code indicates failure. The following failure codes can be returned: .TP \fB1\fR -Error in command line syntax\&. - +Error in command line syntax. .TP \fB2\fR -One of the files passed on the command line did not exist\&. - +One of the files passed on the command line did not exist. .TP \fB3\fR -A required tool could not be found\&. - +A required tool could not be found. .TP \fB4\fR -The action failed\&. - +The action failed. .SH "EXAMPLES" - .PP - - .nf - -xdg\-open 'http://www\&.freedesktop\&.org/' - +xdg\-open 'http://www.freedesktop.org/' .fi - Opens the Freedesktop\&.org website in the user's default browser - +.sp +Opens the Freedesktop.org website in the user's default browser .PP - - .nf - -xdg\-open /tmp/foobar\&.png - +xdg\-open /tmp/foobar.png .fi - Opens the PNG image file /tmp/foobar\&.png in the user's default image viewing application\&. - -.SH AUTHORS -Kevin Krammer, Jeremy White. +.sp +Opens the PNG image file /tmp/foobar.png in the user's default image viewing application. +.SH "AUTHOR" +Kevin Krammer, Jeremy White. +.br +<kevin.krammer@gmx.at> +.br +<jwhite@codeweavers.com> diff --git a/scripts/man/xdg-screensaver.1 b/scripts/man/xdg-screensaver.1 index 2f39bb2..c3566da 100644 --- a/scripts/man/xdg-screensaver.1 +++ b/scripts/man/xdg-screensaver.1 @@ -2,7 +2,7 @@ .\" It was generated using the DocBook XSL Stylesheets (version 1.69.1). .\" Instead of manually editing it, you probably should edit the DocBook XML .\" source for it and then use the DocBook XSL Stylesheets to regenerate it. -.TH "XDG\-SCREENSAVER" "1" "06/25/2006" "This is release 0.1 of the xdg\-screensav" "" +.TH "XDG\-SCREENSAVER" "1" "07/17/2006" "This is release 0.1 of the xdg\-screensav" "" .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) diff --git a/scripts/man/xdg-su.1 b/scripts/man/xdg-su.1 index f50c8a3..d99409f 100644 --- a/scripts/man/xdg-su.1 +++ b/scripts/man/xdg-su.1 @@ -1,102 +1,72 @@ -.\"Generated by db2man.xsl. Don't modify this, modify the source. -.de Sh \" Subsection -.br -.if t .Sp -.ne 5 -.PP -\fB\\$1\fR -.PP -.. -.de Sp \" Vertical space (when we can't use .PP) -.if t .sp .5v -.if n .sp -.. -.de Ip \" List item -.br -.ie \\n(.$>=3 .ne \\$3 -.el .ne 3 -.IP "\\$1" \\$2 -.. -.TH "XDG-SU" 1 "" "" "xdg-su Manual" -.SH NAME -xdg-su \- run a program as root after prompting for the root password -.SH "SYNOPSIS" +.\" ** You probably do not want to edit this file directly ** +.\" It was generated using the DocBook XSL Stylesheets (version 1.69.1). +.\" Instead of manually editing it, you probably should edit the DocBook XML +.\" source for it and then use the DocBook XSL Stylesheets to regenerate it. +.TH "XDG\-SU" "1" "07/17/2006" "This is release 0.5 of the xdg\-su Manual" "" +.\" disable hyphenation +.nh +.\" disable justification (adjust text to left margin only) .ad l -.hy 0 +.SH "NAME" +xdg\-su \- run a program as root after prompting for the root password +.SH "SYNOPSIS" .HP 7 -\fBxdg\-su\fR [\fB\-u\ \fIuser\fR\fR] \fB\-c\ \fIcommand\fR\fR -.ad -.hy -.ad l -.hy 0 +\fBxdg\-su\fR [\fB\-u\ \fR\fB\fIuser\fR\fR] \fB\-c\ \fR\fB\fIcommand\fR\fR .HP 7 -\fBxdg\-su\fR {\fB\fB\-\-help\fR\fR | \fB\fB\-\-manual\fR\fR | \fB\fB\-\-version\fR\fR} -.ad -.hy - +\fBxdg\-su\fR {\fB\-\-help\fR \fB\-\-manual\fR \fB\-\-version\fR} .SH "DESCRIPTION" - .PP -xdg\-su provides a graphical dialog that prompts the user for a password to run \fIcommand\fR as \fIuser\fR or as root if no user was specified\&. - +xdg\-su provides a graphical dialog that prompts the user for a password to run +\fIcommand\fR +as +\fIuser\fR +or as root if no user was specified. .PP -xdg\-su is for use inside a desktop session only\&. - +xdg\-su is for use inside a desktop session only. .SH "OPTIONS" - .TP -\fB\-u \fIuser\fR\fR -run \fIcommand\fR as \fIuser\fR\&. The default is to run as root\&. - +\fB\-u \fR\fB\fIuser\fR\fR +run +\fIcommand\fR +as +\fIuser\fR. The default is to run as root. .TP \fB\-\-help\fR -Show command synopsis\&. - +Show command synopsis. .TP \fB\-\-manual\fR -Show this manualpage\&. - +Show this manualpage. .TP \fB\-\-version\fR -Show the xdg\-utils version information\&. - +Show the xdg\-utils version information. .SH "EXIT CODES" - .PP -An exit code of 0 indicates success while a non\-zero exit code indicates failure\&. The following failure codes can be returned: - +An exit code of 0 indicates success while a non\-zero exit code indicates failure. The following failure codes can be returned: .TP \fB1\fR -Error in command line syntax\&. - +Error in command line syntax. .TP \fB2\fR -One of the files passed on the command line did not exist\&. - +One of the files passed on the command line did not exist. .TP \fB3\fR -A required tool could not be found\&. - +A required tool could not be found. .TP \fB4\fR -The action failed\&. - +The action failed. .SH "SEE ALSO" - .PP -\fBsu\fR(1) - +\fBsu\fR(1) .SH "EXAMPLES" - .PP - - .nf - xdg\-su \-u root \-c "/opt/shinythings/bin/install\-GUI \-\-install fast" - .fi - Runs the /opt/shinythings/bin/install\-GUI command with root permissions\&. - -.SH AUTHORS -Kevin Krammer, Jeremy White. +.sp +Runs the /opt/shinythings/bin/install\-GUI command with root permissions. +.SH "AUTHOR" +Kevin Krammer, Jeremy White. +.br +<kevin.krammer@gmx.at> +.br +<jwhite@codeweavers.com> diff --git a/scripts/xdg-desktop-icon b/scripts/xdg-desktop-icon index af69ecf..9dfe88e 100755 --- a/scripts/xdg-desktop-icon +++ b/scripts/xdg-desktop-icon @@ -1,6 +1,6 @@ #!/bin/sh #--------------------------------------------- -# xdg-desktop +# xdg-desktop-icon # # Utility script to install desktop items on a Linux desktop. # @@ -34,16 +34,15 @@ usage() { cat << _USAGE - xdg-desktop-icon -- command line tool for (un)installing icons to the - desktop +xdg-desktop-icon — command line tool for (un)installing icons to the desktop Synopsis - xdg-desktop-icon install [--vendor vendor-id] FILE +xdg-desktop-icon install [--vendor vendor-id] FILE - xdg-desktop-icon uninstall [--vendor vendor-id] FILE +xdg-desktop-icon uninstall [--vendor vendor-id] FILE - xdg-desktop-icon { --help | --manual | --version } +xdg-desktop-icon { --help | --manual | --version } _USAGE } @@ -53,153 +52,145 @@ manualpage() cat << _MANUALPAGE Name - xdg-desktop-icon -- command line tool for (un)installing icons to the - desktop +xdg-desktop-icon — command line tool for (un)installing icons to the desktop Synopsis - xdg-desktop-icon install [--vendor vendor-id] FILE +xdg-desktop-icon install [--vendor vendor-id] FILE - xdg-desktop-icon uninstall [--vendor vendor-id] FILE +xdg-desktop-icon uninstall [--vendor vendor-id] FILE - xdg-desktop-icon { --help | --manual | --version } +xdg-desktop-icon { --help | --manual | --version } Description - The xdg-desktop-icon program can be used to install an application - launcher or other file on the desktop of the current user. +The xdg-desktop-icon program can be used to install an application launcher or +other file on the desktop of the current user. - An application launcher is represented by a *.desktop file. Desktop files - are defined by the freedesktop.org Desktop Entry Specification. The most - important aspects of *.desktop files are summarized below. +An application launcher is represented by a *.desktop file. Desktop files are +defined by the freedesktop.org Desktop Entry Specification. The most important +aspects of *.desktop files are summarized below. Commands - install - Installs FILE to the desktop of the current user. FILE can be a - *.desktop file or any other type of file. - - uninstall - Removes FILE from the desktop of the current user. +install + Installs FILE to the desktop of the current user. FILE can be a *.desktop + file or any other type of file. +uninstall + Removes FILE from the desktop of the current user. Options - --vendor vendor-id - Adds vendor-id as a prefix when installing desktop files. - - --help - Show command synopsis. - - --manual - Show this manualpage. - - --version - Show the xdg-utils version information. +--vendor vendor-id + Adds vendor-id as a prefix when installing desktop files. +--help + Show command synopsis. +--manual + Show this manualpage. +--version + Show the xdg-utils version information. Desktop Files - An application launcher can be added to the desktop by installing a - *.desktop file. A *.desktop file consists of a [Desktop Entry] header - followed by several Key=Value lines. - - A *.desktop file can provide a name and description for an application in - several different languages. This is done by adding a language code as - used by LC_MESSAGES in square brackets behind the Key. This way one can - specify different values for the same Key depending on the currently - selected language. - - The following keys are often used: - - Value=1.0 - This is a mandatory field to indicate that the *.desktop file - follows the 1.0 version of the specification. - - Type=Application - This is a mandatory field that indicates that the *.desktop file - describes an application launcher. - - Name=Application Name - The name of the application. For example Mozilla - - GenericName=Generic Name - A generic description of the application. For example Web Browser - - Comment=Comment - Optional field to specify a tooltip for the application. For - example Visit websites on the Internet - - Icon=Icon File - The icon to use for the application. This can either be an - absolute path to an image file or an icon-name. If an icon-name is - provided an image lookup by name is done in the user's current - icon theme. The xdg-icon-resource command can be used to install - image files into icon themes. The advantage of using an icon-name - instead of an absolute path is that with an icon-name the - application icon can be provided in several different sizes as - well as in several differently themed styles. - - Exec=Command Line - The command line to start the application. If the application can - open files the %f placeholder should be specified. When a file is - dropped on the application launcher the %f is replaced with the - file path of the dropped file. If multiple files can be specified - on the command line the %F placeholder should be used instead of - %f. If the application is able to open URLs in addition to local - files then %u or %U can be used instead of %f or %F. - - For a complete oveview of the *.desktop file format please visit - http://www.freedesktop.org/wiki/Standards/desktop-entry-spec +An application launcher can be added to the desktop by installing a *.desktop +file. A *.desktop file consists of a [Desktop Entry] header followed by several +Key=Value lines. + +A *.desktop file can provide a name and description for an application in +several different languages. This is done by adding a language code as used by +LC_MESSAGES in square brackets behind the Key. This way one can specify +different values for the same Key depending on the currently selected language. + +The following keys are often used: + +Value=1.0 + This is a mandatory field to indicate that the *.desktop file follows the + 1.0 version of the specification. +Type=Application + This is a mandatory field that indicates that the *.desktop file describes + an application launcher. +Name=Application Name + The name of the application. For example Mozilla +GenericName=Generic Name + A generic description of the application. For example Web Browser +Comment=Comment + Optional field to specify a tooltip for the application. For example Visit + websites on the Internet +Icon=Icon File + The icon to use for the application. This can either be an absolute path to + an image file or an icon-name. If an icon-name is provided an image lookup + by name is done in the user's current icon theme. The xdg-icon-resource + command can be used to install image files into icon themes. The advantage + of using an icon-name instead of an absolute path is that with an icon-name + the application icon can be provided in several different sizes as well as + in several differently themed styles. +Exec=Command Line + The command line to start the application. If the application can open + files the %f placeholder should be specified. When a file is dropped on the + application launcher the %f is replaced with the file path of the dropped + file. If multiple files can be specified on the command line the %F + placeholder should be used instead of %f. If the application is able to + open URLs in addition to local files then %u or %U can be used instead of + %f or %F. + +For a complete oveview of the *.desktop file format please visit http:// +www.freedesktop.org/wiki/Standards/desktop-entry-spec + +Environment Variables + +xdg-desktop-icon honours the following environment variables: + +XDG_UTILS_DEBUG_LEVEL + Setting this environment variable to a non-zero numerical value makes + xdg-desktop-icon do more verbose reporting on stderr. Setting a higher + value increases the verbosity. Exit Codes - An exit code of 0 indicates success while a non-zero exit code indicates - failure. The following failure codes can be returned: - - 1 - Error in command line syntax. +An exit code of 0 indicates success while a non-zero exit code indicates +failure. The following failure codes can be returned: - 2 - One of the files passed on the command line did not exist. - - 3 - A required tool could not be found. - - 4 - The action failed. +1 + Error in command line syntax. +2 + One of the files passed on the command line did not exist. +3 + A required tool could not be found. +4 + The action failed. See Also - xdg-icon-resource(1) +xdg-icon-resource(1) Examples - The company ShinyThings Inc. has developed an application named - "WebMirror" and would like to add a launcher for for on the desktop. The - company will use "shinythings" as its vendor id. In order to add the - application to the desktop there needs to be a .desktop file for the - application: +The company ShinyThings Inc. has developed an application named "WebMirror" and +would like to add a launcher for for on the desktop. The company will use +"shinythings" as its vendor id. In order to add the application to the desktop +there needs to be a .desktop file for the application: - webmirror.desktop: +webmirror.desktop: - [Desktop Entry] - Encoding=UTF-8 - Type=Application + [Desktop Entry] + Encoding=UTF-8 + Type=Application - Exec=webmirror - Icon=webmirror + Exec=webmirror + Icon=webmirror - Name=WebMirror - Name[nl]=WebSpiegel + Name=WebMirror + Name[nl]=WebSpiegel - Now the xdg-desktop-icon tool can be used to add the webmirror.desktop - file to the desktop: +Now the xdg-desktop-icon tool can be used to add the webmirror.desktop file to +the desktop: - xdg-desktop-icon install --vendor shinythings ./webmirror.desktop +xdg-desktop-icon install --vendor shinythings ./webmirror.desktop - To add a README file to the desktop as well, the following command can be - used: +To add a README file to the desktop as well, the following command can be used: + +xdg-desktop-icon install ./shinythings-README - xdg-desktop-icon install ./shinythings-README _MANUALPAGE } @@ -211,9 +202,9 @@ _MANUALPAGE DEBUG() { - [ ${xdg_utils_debug_level-0} -lt $1 ] && return 0; + [ ${XDG_UTILS_DEBUG_LEVEL-0} -lt $1 ] && return 0; shift - echo "$@" + echo "$@" >&2 } #------------------------------------------------------------- @@ -412,6 +403,8 @@ desktop_dir=$HOME/Desktop basefile=`basename $desktop_file` [ -z $vendor ] || [ x"$filetype" != x"desktop" ] || basefile=$vendor-$basefile +DEBUG 1 "$action $desktop_file in $desktop_dir" + case $action in install) save_umask=`umask` diff --git a/scripts/xdg-desktop-menu b/scripts/xdg-desktop-menu index cb340c9..1b2a3b7 100755 --- a/scripts/xdg-desktop-menu +++ b/scripts/xdg-desktop-menu @@ -1,11 +1,8 @@ #!/bin/sh #--------------------------------------------- -# xdg-menu +# xdg-desktop-menu # # Utility script to install menu items on a Linux desktop. -# Works on most XDG compliant systems; does -# not work everywhere. -# # Refer to the usage() function below for usage. # # Copyright 2006, Kevin Krammer <kevin.krammer@gmx.at> @@ -162,6 +159,15 @@ MimeType=Mimetypes For a complete oveview of the *.desktop file format please visit http:// www.freedesktop.org/wiki/Standards/desktop-entry-spec +Environment Variables + +xdg-desktop-menu honours the following environment variables: + +XDG_UTILS_DEBUG_LEVEL + Setting this environment variable to a non-zero numerical value makes + xdg-desktop-menu do more verbose reporting on stderr. Setting a higher + value increases the verbosity. + Exit Codes An exit code of 0 indicates success while a non-zero exit code indicates @@ -334,9 +340,9 @@ _USAGE DEBUG() { - [ ${xdg_utils_debug_level-0} -lt $1 ] && return 0; + [ ${XDG_UTILS_DEBUG_LEVEL-0} -lt $1 ] && return 0; shift - echo "$@" + echo "$@" >&2 } #------------------------------------------------------------- @@ -461,7 +467,7 @@ update_desktop_database() if [ "$mode" = "system" ] ; then for x in `echo $PATH | sed 's/:/ /g'` /opt/gnome/bin; do if [ -x $x/update-desktop-database ] ; then - echo Running $x/update-desktop-database + DEBUG 1 "Running $x/update-desktop-database" $x/update-desktop-database return fi @@ -619,6 +625,12 @@ else fi fi +DEBUG 3 "xdg_user_dir: $xdg_user_dir" +DEBUG 3 "xdg_global_dir: $xdg_global_dir" +DEBUG 3 "kde_user_dir: $kde_user_dir" +DEBUG 3 "kde_global_dir: $kde_global_dir" +DEBUG 3 "gnome_user_dir: $gnome_user_dir" +DEBUG 3 "gnome_global_dir: $gnome_global_dir" if [ x"$mode" = x"user" ] ; then xdg_dir=$xdg_user_dir @@ -646,6 +658,8 @@ fi basefile=`basename $desktop_file` [ -z $vendor ] || basefile=$vendor-$basefile +DEBUG 1 "$action $desktop_file in $xdg_dir $kde_dir $gnome_dir" + case $action in install) save_umask=`umask` diff --git a/scripts/xdg-email b/scripts/xdg-email index fca2a8d..3f9661c 100755 --- a/scripts/xdg-email +++ b/scripts/xdg-email @@ -37,112 +37,99 @@ manualpage() cat << _MANUALPAGE Name - xdg-email -- command line tool for sending mail using the user's preferred - e-mail composer +xdg-email — command line tool for sending mail using the user's preferred +e-mail composer Synopsis - xdg-email [--utf8] [--cc address] [--bcc address] [--subject text] [--body - text] [--attach file] { mailto-uri | address(es) } +xdg-email [--utf8] [--cc address] [--bcc address] [--subject text] [--body text +] [--attach file] { mailto-uri | address(es) } - xdg-email { --help | --manual | --version } +xdg-email { --help | --manual | --version } Description - xdg-email opens the user's preferred e-mail composer in order to send a - mail to address(es) or mailto-uri. RFC2368 defines mailto: URIs. xdg-email - limits support to, cc, subject and body fields in mailto-uri, all other - fields are silently ignored. address(es) must follow the syntax of RFC822. - Multiple addresses may be provided as separate arguments. +xdg-email opens the user's preferred e-mail composer in order to send a mail to +address(es) or mailto-uri. RFC2368 defines mailto: URIs. xdg-email limits +support to, cc, subject and body fields in mailto-uri, all other fields are +silently ignored. address(es) must follow the syntax of RFC822. Multiple +addresses may be provided as separate arguments. - All information provided on the command line is used to prefill - corresponding fields in the user's e-mail composer. The user will have the - opportunity to change any of this information before actually sending the - e-mail. +All information provided on the command line is used to prefill corresponding +fields in the user's e-mail composer. The user will have the opportunity to +change any of this information before actually sending the e-mail. - xdg-email is for use inside a desktop session only. It is not recommended - to use xdg-email as root. +xdg-email is for use inside a desktop session only. It is not recommended to +use xdg-email as root. Options - --utf8 - Indicates that all command line options that follow are in utf8. - Without this option, command line options are expected to be - encoded according to locale. If the locale already specifies utf8 - this option has no effect. This option does not affect mailto URIs - that are passed on the command line. - - --cc address - Specify a recipient to be copied on the e-mail. - - --bcc address - Specify a recipient to be blindly copied on the e-mail. - - --subject text - Specify a subject for the e-mail. - - --body text - Specify a body for the e-mail. Since the user will be able to make - changes before actually sending the e-mail, this can be used to - provide the user with a template for the e-mail. text may contain - linebreaks. - - --attach file - Specify an attachment for the e-mail. file must point to an - existing file. - - --help - Show command synopsis. - - --manual - Show this manualpage. - - --version - Show the xdg-utils version information. +--utf8 + Indicates that all command line options that follow are in utf8. Without + this option, command line options are expected to be encoded according to + locale. If the locale already specifies utf8 this option has no effect. + This option does not affect mailto URIs that are passed on the command + line. +--cc address + Specify a recipient to be copied on the e-mail. +--bcc address + Specify a recipient to be blindly copied on the e-mail. +--subject text + Specify a subject for the e-mail. +--body text + Specify a body for the e-mail. Since the user will be able to make changes + before actually sending the e-mail, this can be used to provide the user + with a template for the e-mail. text may contain linebreaks. +--attach file + Specify an attachment for the e-mail. file must point to an existing file. +--help + Show command synopsis. +--manual + Show this manualpage. +--version + Show the xdg-utils version information. Exit Codes - An exit code of 0 indicates success while a non-zero exit code indicates - failure. The following failure codes can be returned: +An exit code of 0 indicates success while a non-zero exit code indicates +failure. The following failure codes can be returned: - 1 - Error in command line syntax. - - 2 - One of the files passed on the command line did not exist. - - 3 - A required tool could not be found. - - 4 - The action failed. +1 + Error in command line syntax. +2 + One of the files passed on the command line did not exist. +3 + A required tool could not be found. +4 + The action failed. Examples - xdg-email 'Jeremy White <jwhite@example.com>' +xdg-email 'Jeremy White <jwhite@example.com>' + +xdg-email --attach /tmp/logo.png \ + --subject 'Logo contest' \ + --body 'Attached you find the logo for the contest.' \ + 'jwhite@example.com' - xdg-email --attach /tmp/logo.png \ - --subject 'Logo contest' \ - --body 'Attached you find the logo for the contest.' \ - 'jwhite@example.com' +xdg-email --subject 'Your password is about to expire' \ + 'jwhite@example.com' 'bastian@example.com' 'whipple@example.com' - xdg-email --subject 'Your password is about to expire' \ - 'jwhite@example.com' 'bastian@example.com' 'whipple@example.com' _MANUALPAGE } usage() { cat << _USAGE - xdg-email -- command line tool for sending mail using the user's preferred - e-mail composer +xdg-email — command line tool for sending mail using the user's preferred +e-mail composer Synopsis - xdg-email [--utf8] [--cc address] [--bcc address] [--subject text] [--body - text] [--attach file] { mailto-uri | address(es) } +xdg-email [--utf8] [--cc address] [--bcc address] [--subject text] [--body text +] [--attach file] { mailto-uri | address(es) } - xdg-email { --help | --manual | --version } +xdg-email { --help | --manual | --version } _USAGE } @@ -153,6 +140,13 @@ _USAGE # Common utility functions included in all XDG wrapper scripts #---------------------------------------------------------------------------- +DEBUG() +{ + [ ${XDG_UTILS_DEBUG_LEVEL-0} -lt $1 ] && return 0; + shift + echo "$@" >&2 +} + #------------------------------------------------------------- # Exit script on successfully completing the desired operation diff --git a/scripts/xdg-icon-resource b/scripts/xdg-icon-resource index 52ae974..cd301e2 100755 --- a/scripts/xdg-icon-resource +++ b/scripts/xdg-icon-resource @@ -1,10 +1,8 @@ #!/bin/sh #--------------------------------------------- -# xdg-icon +# xdg-icon-resource # # Utility script to install icons on a Linux desktop. -# Works on most XDG compliant systems; does -# not work everywhere. # # Refer to the usage() function below for usage. # @@ -38,149 +36,143 @@ manualpage() cat << _MANUALPAGE Name - xdg-icon-resource -- command line tool for (un)installing icon resources +xdg-icon-resource — command line tool for (un)installing icon resources Synopsis - xdg-icon-resource install [--noupdate] [--theme theme] [--context context] - [--size size] { --user | --system } icon-file [icon-name] +xdg-icon-resource install [--noupdate] [--theme theme] [--context context] +[--size size] { --user | --system } icon-file [icon-name] - xdg-icon-resource uninstall [--noupdate] [--theme theme] [--context - context] [--size size] { --user | --system } icon-name +xdg-icon-resource uninstall [--noupdate] [--theme theme] [--context context] +[--size size] { --user | --system } icon-name - xdg-icon-resource forceupdate [--theme theme] { --user | --system } +xdg-icon-resource forceupdate [--theme theme] { --user | --system } - xdg-icon-resource { --help | --manual | --version } +xdg-icon-resource { --help | --manual | --version } Description - The xdg-icon-resource program can be used to install icon resources into - the desktop icon system in order to illustrate menu entries, to depict - desktop icons or to graphically represent file types. +The xdg-icon-resource program can be used to install icon resources into the +desktop icon system in order to illustrate menu entries, to depict desktop +icons or to graphically represent file types. - The desktop icon system identifies icons by name. Depending on the - required size, the choice of icon theme and the context in which the icon - is used, the desktop icon system locates an appropriate icon resource to - depict an icon. Icon resources can be XPM files, PNG files or SVG files. +The desktop icon system identifies icons by name. Depending on the required +size, the choice of icon theme and the context in which the icon is used, the +desktop icon system locates an appropriate icon resource to depict an icon. +Icon resources can be XPM files, PNG files or SVG files. - The desktop icon system works according to the XDG Icon Theme - Specification at http://www.freedesktop.org/Standards/icon-theme-spec +The desktop icon system works according to the XDG Icon Theme Specification at +http://www.freedesktop.org/Standards/icon-theme-spec Commands - install - Installs the icon file indicated by icon-file to the desktop icon - system under the name icon-name. If icon-name is not provided the - name is derived from icon-file. The icon file must have .png, .xpm - or .svg as extension. If a corresponding .icon file exists in the - same location as icon-file it will be installed as well. - - uninstall - Removes the icon file indicated by icon-name from the desktop icon - system. - - forceupdate - Force an update of the desktop icon system. This is only useful if - the last call to xdg-icon-resource included the --noupdate option. +install + Installs the icon file indicated by icon-file to the desktop icon system + under the name icon-name. If icon-name is not provided the name is derived + from icon-file. The icon file must have .png, .xpm or .svg as extension. If + a corresponding .icon file exists in the same location as icon-file it will + be installed as well. +uninstall + Removes the icon file indicated by icon-name from the desktop icon system. +forceupdate + Force an update of the desktop icon system. This is only useful if the last + call to xdg-icon-resource included the --noupdate option. Options - --noupdate - Postpone updating the desktop icon system. If multiple icons are - added in sequence this flag can be used to indicate that - additional changes will follow and that it is not necassery to - update the desktop icon system right away. - - --theme theme - Installs or removes the icon file as part of theme. If no theme is - specified the icons will be installed as part of the default - hicolor theme. Applications may install icons under multiple - themes but should at least install icons for the default hicolor - theme. - - --context context - Specifies the context for the icon. Icons to be used in the - application menu and as desktop icon should use apps as context - which is the default context. Icons to be used as file icons - should use mimetypes as context. Other common contexts are - actions, devices, emblems, filesystems and stock. - - --size size - Specifies the size of the icon (required for png and xpm icons). - All icons must be square. Common sizes for icons in the apps - context are: 16, 22, 32, 48, 64 and 128. Common sizes for icons in - the mimetypes context are: 16, 22, 32, 48, 64 and 128 - - --user - Installs or uninstalls the icon for the current user only. - - --system - Installs or uninstalls the icon for all users on the system. - Usually only root is allowed to do this. - - --help - Show command synopsis. - - --manual - Show this manualpage. - - --version - Show the xdg-utils version information. +--noupdate + Postpone updating the desktop icon system. If multiple icons are added in + sequence this flag can be used to indicate that additional changes will + follow and that it is not necassery to update the desktop icon system right + away. +--theme theme + Installs or removes the icon file as part of theme. If no theme is + specified the icons will be installed as part of the default hicolor theme. + Applications may install icons under multiple themes but should at least + install icons for the default hicolor theme. +--context context + Specifies the context for the icon. Icons to be used in the application + menu and as desktop icon should use apps as context which is the default + context. Icons to be used as file icons should use mimetypes as context. + Other common contexts are actions, devices, emblems, filesystems and stock. +--size size + Specifies the size of the icon (required for png and xpm icons). All icons + must be square. Common sizes for icons in the apps context are: 16, 22, 32, + 48, 64 and 128. Common sizes for icons in the mimetypes context are: 16, + 22, 32, 48, 64 and 128 +--user + Installs or uninstalls the icon for the current user only. +--system + Installs or uninstalls the icon for all users on the system. Usually only + root is allowed to do this. +--help + Show command synopsis. +--manual + Show this manualpage. +--version + Show the xdg-utils version information. + +Environment Variables + +xdg-icon-resource honours the following environment variables: + +XDG_UTILS_DEBUG_LEVEL + Setting this environment variable to a non-zero numerical value makes + xdg-icon-resource do more verbose reporting on stderr. Setting a higher + value increases the verbosity. Exit Codes - An exit code of 0 indicates success while a non-zero exit code indicates - failure. The following failure codes can be returned: - - 1 - Error in command line syntax. +An exit code of 0 indicates success while a non-zero exit code indicates +failure. The following failure codes can be returned: - 2 - One of the files passed on the command line did not exist. - - 3 - A required tool could not be found. - - 4 - The action failed. +1 + Error in command line syntax. +2 + One of the files passed on the command line did not exist. +3 + A required tool could not be found. +4 + The action failed. See Also - xdg-desktop-icon(1), xdg-desktop-menu(1), xdg-mime(1) +xdg-desktop-icon(1), xdg-desktop-menu(1), xdg-mime(1) Examples - To install an icon resource to depict a launcher for the application - myfoobar one can use: +To install an icon resource to depict a launcher for the application myfoobar +one can use: + +xdg-icon-resource install --system --size 64 myfoobar.png - xdg-icon-resource install --system --size 64 myfoobar.png +To install an icon for a new application/x-foobar file type one can use: - To install an icon for a new application/x-foobar file type one can use: +xdg-icon-resource install --system --context mimetypes --size 48 ./mime-foobar-48.png application-x-foobar.png +xdg-icon-resource install --system --context mimetypes --size 64 ./mime-foobar-64.png application-x-foobar.png - xdg-icon-resource install --system --context mimetypes --size 48 ./mime-foobar-48.png application-x-foobar.png - xdg-icon-resource install --system --context mimetypes --size 64 ./mime-foobar-64.png application-x-foobar.png +This will install two icons with the name application-x-foobar.png but with +different sizes. The icons will be installed for use by all users. - This will install two icons with the name application-x-foobar.png but - with different sizes. The icons will be installed for use by all users. _MANUALPAGE } usage() { cat << _USAGE - xdg-icon-resource -- command line tool for (un)installing icon resources +xdg-icon-resource — command line tool for (un)installing icon resources Synopsis - xdg-icon-resource install [--noupdate] [--theme theme] [--context context] - [--size size] { --user | --system } icon-file [icon-name] +xdg-icon-resource install [--noupdate] [--theme theme] [--context context] +[--size size] { --user | --system } icon-file [icon-name] - xdg-icon-resource uninstall [--noupdate] [--theme theme] [--context - context] [--size size] { --user | --system } icon-name +xdg-icon-resource uninstall [--noupdate] [--theme theme] [--context context] +[--size size] { --user | --system } icon-name - xdg-icon-resource forceupdate [--theme theme] { --user | --system } +xdg-icon-resource forceupdate [--theme theme] { --user | --system } - xdg-icon-resource { --help | --manual | --version } +xdg-icon-resource { --help | --manual | --version } _USAGE } @@ -193,9 +185,9 @@ _USAGE DEBUG() { - [ ${xdg_utils_debug_level-0} -lt $1 ] && return 0; + [ ${XDG_UTILS_DEBUG_LEVEL-0} -lt $1 ] && return 0; shift - echo "$@" + echo "$@" >&2 } #------------------------------------------------------------- diff --git a/scripts/xdg-mime b/scripts/xdg-mime index 1858643..7da7492 100755 --- a/scripts/xdg-mime +++ b/scripts/xdg-mime @@ -124,6 +124,15 @@ Options --version Show the xdg-utils version information. +Environment Variables + +xdg-mime honours the following environment variables: + +XDG_UTILS_DEBUG_LEVEL + Setting this environment variable to a non-zero numerical value makes + xdg-mime do more verbose reporting on stderr. Setting a higher value + increases the verbosity. + Exit Codes An exit code of 0 indicates success while a non-zero exit code indicates @@ -205,9 +214,9 @@ _USAGE DEBUG() { - [ ${xdg_utils_debug_level-0} -lt $1 ] && return 0; + [ ${XDG_UTILS_DEBUG_LEVEL-0} -lt $1 ] && return 0; shift - echo "$@" + echo "$@" >&2 } #------------------------------------------------------------- @@ -332,7 +341,7 @@ update_mime_database() IFS=":" for x in $PATH:/opt/gnome/bin; do if [ -x $x/update-mime-database ] ; then - echo Running $x/update-mime-database $1 + DEBUG 1 "Running $x/update-mime-database $1" $x/update-mime-database $1 return fi @@ -342,6 +351,7 @@ update_mime_database() info_kde() { + DEBUG 1 "Running kfile \"$1\"" kfile "$1" 2> /dev/null | head -n 1 | cut -d "(" -f 2 | cut -d ")" -f 1 exit_success @@ -349,6 +359,7 @@ info_kde() info_gnome() { + DEBUG 1 "Running gnomevfs-info \"$1\"" gnomevfs-info "$1" 2> /dev/null | grep MIME | cut -d ":" -f 2 | sed s/"^ "// exit_success @@ -356,6 +367,7 @@ info_gnome() info_generic() { + DEBUG 1 "Running /usr/bin/file -i \"$1\"" /usr/bin/file -i "$1" 2> /dev/null | cut -d ":" -f 2 | sed s/"^ "// exit_success @@ -373,6 +385,8 @@ make_default_kde() # renumber [$2 - *] sections and remove duplicate default_file=$HOME/.kde/share/config/profilerc + DEBUG 2 "make_default_kde $1 $2" + DEBUG 1 "Updating $default_file" awk -v application="$1" -v mimetype="$2" ' BEGIN { header_start="[" mimetype " - " @@ -408,6 +422,8 @@ make_default_generic() xdg_user_dir=$XDG_DATA_HOME [ -n "$xdg_user_dir" ] || xdg_user_dir=$HOME/.local/share default_file=$xdg_user_dir/applications/defaults.list + DEBUG 2 "make_default_generic $1 $2" + DEBUG 1 "Updating $default_file" grep -v "$2=" $default_file > ${default_file}.new 2> /dev/null if ! grep "[Default Applications]" ${default_file}.new > /dev/null; then echo "[Default Applications]" >> ${default_file}.new @@ -419,9 +435,12 @@ make_default_generic() defapp_kde() { + DEBUG 1 "Running kfile \"$1\"" MIME=`kfile "$1" 2> /dev/null | head -n 1 | cut -d "(" -f 2 | cut -d ")" -f 1` + DEBUG 2 "MIME = $MIME" if [ x"$MIME" != x"" ]; then + DEBUG 1 "Running ktradertest \"$MIME\" Application" trader_result=`ktradertest "$MIME" Application 2>/dev/null | grep DesktopEntryPath \ | head -n 1 | cut -d ':' -f 2 | cut -d \' -f 2` if [ -n "$trader_result" ] ; then @@ -435,6 +454,7 @@ defapp_kde() defapp_gnome() { + DEBUG 1 "Running gnomevfs-info \"$1\"" gnomevfs-info "$1" 2> /dev/null | grep "Default app" | cut -d ":" -f 2 \ | cut -d " " -f 2 @@ -446,6 +466,7 @@ install_xsl_listmime() { # Dump script to file, can't pipe into xsltproc directly xsl_file=`mktemp` || return +DEBUG 2 "Creating temporary XSL file to list mimetypes: $xsl_file" cat > $xsl_file << _XSL <?xml version="1.0" encoding="ISO-8859-1"?> <xsl:stylesheet version="1.0" @@ -467,6 +488,7 @@ install_xsl_shared2mimelnk() { # Dump script to file, can't pipe into xsltproc directly xsl_file=`mktemp` || return +DEBUG 2 "Creating temporary XSL file to convert XML mimetype file: $xsl_file" cat > $xsl_file << _XSL <?xml version="1.0" encoding="ISO-8859-1"?> <xsl:stylesheet version="1.0" @@ -505,6 +527,7 @@ _XSL uninstall_xsl() { + DEBUG 2 "Cleaning up temporary XSL file: $xsl_file" rm -f $xsl_file xsl_file= } @@ -712,11 +735,14 @@ for x in $xdg_system_dirs ; do done IFS=$IFS_save [ -w $xdg_global_dir ] || xdg_global_dir= +DEBUG 3 "xdg_user_dir: $xdg_user_dir" +DEBUG 3 "xdg_global_dir: $xdg_global_dir" # Find KDE3 mimelnk directory kde_user_dir=$HOME/.kde/share/mimelnk kde_global_dir= kde_global_dirs=`kde-config --path mime` +DEBUG 3 "kde_global_dirs: $kde_global_dirs" [ -n $kde_global_dirs ] || kde_global_dirs=/opt/kde3/share/mimelnk:/opt/kde/share/mimelnk:/usr/share/mimelnk IFS_save=$IFS IFS=":" @@ -724,18 +750,23 @@ first= for x in $kde_global_dirs ; do if [ -z "$first" ] ; then first=false + #TODO: Mode check seems redundant [ x"$mode" = x"user" ] && kde_user_dir=$x elif [ -w $x ] ; then [ x"$mode" = x"system" ] && kde_global_dir=$x fi done IFS=$IFS_save +DEBUG 3 "kde_user_dir: $kde_user_dir" +DEBUG 3 "kde_global_dir: $kde_global_dir" # TODO: Gnome legacy support # See http://forums.fedoraforum.org/showthread.php?t=26875 gnome_user_dir=$HOME/.gnome/apps gnome_global_dir=/usr/share/gnome/apps [ -w $gnome_global_dir ] || gnome_global_dir= +DEBUG 3 "gnome_user_dir: $gnome_user_dir" +DEBUG 3 "gnome_global_dir: $gnome_global_dir" if [ x"$mode" = x"user" ] ; then xdg_dir=$xdg_user_dir @@ -758,17 +789,20 @@ fi # echo "[gnome|$gnome_user_dir|$gnome_global_dir]" # echo "[using|$xdg_dir|$kde_dir|$gnome_dir]" -basefile=`basename $filename` +basefile=`basename "$filename"` #[ -z $vendor ] || basefile=$vendor-$basefile mimetypes= if [ -n "$kde_dir" ] ; then - echo KDE3 mimelnk directory found + DEBUG 2 "KDE3 mimelnk directory found, extracting mimetypes from XML file" install_xsl_listmime - mimetypes=`xsltproc $xsl_file $filename` + DEBUG 1 "Running xsltproc \"$xsl_file\" \"$filename\"" + mimetypes=`xsltproc "$xsl_file" "$filename"` uninstall_xsl fi +DEBUG 1 "$action mimetype in $xdg_dir" + case $action in install) save_umask=`umask` @@ -786,6 +820,7 @@ case $action in IFS=' ' for x in $mimetypes ; do + DEBUG 1 "Installing $kde_dir/$x.desktop (KDE 3.x support)" xsltproc --stringparam type $x --stringparam source $basefile $xsl_file $filename > $kde_dir/$x.desktop done IFS=$IFS_save @@ -806,6 +841,7 @@ case $action in ' for x in $mimetypes ; do if grep '^# Installed by xdg-mime' $kde_dir/$x.desktop &>/dev/null ; then + DEBUG 1 "Removing $kde_dir/$x.desktop (KDE 3.x support)" rm -f $kde_dir/$x.desktop fi done diff --git a/scripts/xdg-open b/scripts/xdg-open index 0d4baff..2960790 100755 --- a/scripts/xdg-open +++ b/scripts/xdg-open @@ -36,75 +36,71 @@ manualpage() cat << _MANUALPAGE Name - xdg-open -- opens a file or URL in the user's preferred application +xdg-open — opens a file or URL in the user's preferred application Synopsis - xdg-open { file | URL } +xdg-open { file | URL } - xdg-open { --help | --manual | --version } +xdg-open { --help | --manual | --version } Description - xdg-open opens a file or URL in the user's preferred application. If a URL - is provided the URL will be opened in the user's preferred web browser. If - a file is provided the file will be opened in the preferred application - for files of that type. xdg-open supports file, ftp, http and https URLs. +xdg-open opens a file or URL in the user's preferred application. If a URL is +provided the URL will be opened in the user's preferred web browser. If a file +is provided the file will be opened in the preferred application for files of +that type. xdg-open supports file, ftp, http and https URLs. - xdg-open is for use inside a desktop session only. It is not recommended - to use xdg-open as root. +xdg-open is for use inside a desktop session only. It is not recommended to use +xdg-open as root. Options - --help - Show command synopsis. - - --manual - Show this manualpage. - - --version - Show the xdg-utils version information. +--help + Show command synopsis. +--manual + Show this manualpage. +--version + Show the xdg-utils version information. Exit Codes - An exit code of 0 indicates success while a non-zero exit code indicates - failure. The following failure codes can be returned: - - 1 - Error in command line syntax. +An exit code of 0 indicates success while a non-zero exit code indicates +failure. The following failure codes can be returned: - 2 - One of the files passed on the command line did not exist. - - 3 - A required tool could not be found. - - 4 - The action failed. +1 + Error in command line syntax. +2 + One of the files passed on the command line did not exist. +3 + A required tool could not be found. +4 + The action failed. Examples - xdg-open 'http://www.freedesktop.org/' +xdg-open 'http://www.freedesktop.org/' + +Opens the Freedesktop.org website in the user's default browser - Opens the Freedesktop.org website in the user's default browser +xdg-open /tmp/foobar.png - xdg-open /tmp/foobar.png +Opens the PNG image file /tmp/foobar.png in the user's default image viewing +application. - Opens the PNG image file /tmp/foobar.png in the user's default image - viewing application. _MANUALPAGE } usage() { cat << _USAGE - xdg-open -- opens a file or URL in the user's preferred application +xdg-open — opens a file or URL in the user's preferred application Synopsis - xdg-open { file | URL } +xdg-open { file | URL } - xdg-open { --help | --manual | --version } +xdg-open { --help | --manual | --version } _USAGE } @@ -117,9 +113,9 @@ _USAGE DEBUG() { - [ ${xdg_utils_debug_level-0} -lt $1 ] && return 0; + [ ${XDG_UTILS_DEBUG_LEVEL-0} -lt $1 ] && return 0; shift - echo "$@" + echo "$@" >&2 } #------------------------------------------------------------- diff --git a/scripts/xdg-screensaver b/scripts/xdg-screensaver index 1b46ddd..4fbf7d2 100755 --- a/scripts/xdg-screensaver +++ b/scripts/xdg-screensaver @@ -143,9 +143,9 @@ _USAGE DEBUG() { - [ ${xdg_utils_debug_level-0} -lt $1 ] && return 0; + [ ${XDG_UTILS_DEBUG_LEVEL-0} -lt $1 ] && return 0; shift - echo "$@" + echo "$@" >&2 } #------------------------------------------------------------- @@ -339,8 +339,29 @@ do_resume() cleanup_suspend } +XPROP=`which xprop 2> /dev/null` + +check_window_id() +{ + if [ -z "$XPROP" ]; then + DEBUG 3 "xprop not found" + return + fi + DEBUG 2 "Running $XPROP -id $window_id" + if $XPROP -id $window_id > /dev/null 2> /dev/null; then + DEBUG 3 Window $window_id exists + else + DEBUG 3 Window $window_id does not exist + exit_failure_operation_failed "Window $window_id does not exist" + fi +} + track_window() { + if [ -z "$XPROP" ]; then + # Don't track window if we don't have xprop + return + fi lockfile tmpfile=`mktemp` @@ -371,7 +392,7 @@ track_window() fi # Start tracking $window_id - xprop -id $window_id -spy > /dev/null & + $XPROP -id $window_id -spy > /dev/null & xprop_pid=$! # Add window_id and xprop_pid to the xdg-screensave status file echo "$window_id:$xprop_pid" >> $tmpfile @@ -479,27 +500,27 @@ screensaver_gnome() case "$1" in suspend) # Don't know how to suspend properly - gnome-screensaver-command --exit + gnome-screensaver-command --exit > /dev/null 2> /dev/null ;; resume) # Don't know how to suspend properly # This may start the gnome-screensaver even if it wasn't running before - gnome-screensaver + gnome-screensaver > /dev/null 2> /dev/null ;; activate) - gnome-screensaver-command --activate + gnome-screensaver-command --activate > /dev/null 2> /dev/null ;; reset) # Turns the screensaver off right now - gnome-screensaver-command --deactivate + gnome-screensaver-command --deactivate > /dev/null 2> /dev/null ;; status) # Don't know how to suspend properly - if gnome-screensaver-command --query 2> /dev/null >&2; then + if gnome-screensaver-command --query > /dev/null 2> /dev/null >&2; then echo "enabled" else echo "disabled" @@ -531,7 +552,8 @@ case $1 in exit_failure_syntax "WindowID argument missing" fi - window_id=$1 + window_id=$1 + check_window_id ;; resume) @@ -544,6 +566,7 @@ case $1 in fi window_id=$1 + check_window_id ;; activate) diff --git a/scripts/xdg-su b/scripts/xdg-su index 3909158..01abee0 100755 --- a/scripts/xdg-su +++ b/scripts/xdg-su @@ -113,9 +113,9 @@ _USAGE DEBUG() { - [ ${xdg_utils_debug_level-0} -lt $1 ] && return 0; + [ ${XDG_UTILS_DEBUG_LEVEL-0} -lt $1 ] && return 0; shift - echo "$@" + echo "$@" >&2 } #------------------------------------------------------------- |