diff options
author | Waldo Bastian <waldo.bastian@intel.com> | 2006-07-14 07:19:18 +0000 |
---|---|---|
committer | Waldo Bastian <waldo.bastian@intel.com> | 2006-07-14 07:19:18 +0000 |
commit | db915088f509272835b935d8154241ef09a6c9aa (patch) | |
tree | 6435edf0c1cf78ae8b26b0c79b78229c8020ad26 /scripts/html | |
parent | 13c4a60e9c44429f733232bb035e472605960276 (diff) |
Added xdg-mime default to change the default application
Diffstat (limited to 'scripts/html')
-rw-r--r-- | scripts/html/xdg-mime.html | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/scripts/html/xdg-mime.html b/scripts/html/xdg-mime.html index 5dac136..b41ad3a 100644 --- a/scripts/html/xdg-mime.html +++ b/scripts/html/xdg-mime.html @@ -1,5 +1,5 @@ -<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>xdg-mime</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-mime"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>xdg-mime — command line tool for querying information about file type handling -and adding descriptions for new file types</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="cmdsynopsis"><p><code class="command">xdg-mime</code> query { filetype | default } <em class="replaceable"><code>FILE</code></em> </p></div><div class="cmdsynopsis"><p><code class="command">xdg-mime</code> install { <code class="option">--user</code> | <code class="option">--system</code> } <em class="replaceable"><code>mimetypes-file</code></em> </p></div><div class="cmdsynopsis"><p><code class="command">xdg-mime</code> uninstall { <code class="option">--user</code> | <code class="option">--system</code> } <em class="replaceable"><code>mimetypes-file</code></em> </p></div><div class="cmdsynopsis"><p><code class="command">xdg-mime</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-mime</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-mime"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>xdg-mime — command line tool for querying information about file type handling +and adding descriptions for new file types</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="cmdsynopsis"><p><code class="command">xdg-mime</code> query { filetype | default } <em class="replaceable"><code>FILE</code></em> </p></div><div class="cmdsynopsis"><p><code class="command">xdg-mime</code> default <em class="replaceable"><code>application</code></em> <em class="replaceable"><code>mimetype(s)</code></em> </p></div><div class="cmdsynopsis"><p><code class="command">xdg-mime</code> install { <code class="option">--user</code> | <code class="option">--system</code> } <em class="replaceable"><code>mimetypes-file</code></em> </p></div><div class="cmdsynopsis"><p><code class="command">xdg-mime</code> uninstall { <code class="option">--user</code> | <code class="option">--system</code> } <em class="replaceable"><code>mimetypes-file</code></em> </p></div><div class="cmdsynopsis"><p><code class="command">xdg-mime</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-mime program can be used to query information about file types and to add descriptions for new file types. </p></div><div class="refsect1" lang="en"><a name="commands"></a><h2>Commands</h2><div class="variablelist"><dl><dt><span class="term">query</span></dt><dd><p> @@ -16,6 +16,27 @@ and adding descriptions for new file types</p></div><div class="refsynopsisdiv"> Returns the default application that the desktop environment uses for opening <em class="replaceable"><code>FILE</code></em>. The default applications is identified by its *.desktop file. + </p></dd><dt><span class="term">default</span></dt><dd><p> + Ask the desktop environment to make <em class="replaceable"><code>application</code></em> + the default application for opening + files of type <em class="replaceable"><code>mimetype</code></em>. An + application can be made the default for several file types by + specifying multiple mimetypes. + </p><p> + <em class="replaceable"><code>application</code></em> is the desktop file + id of the application and has the form vendor-name.desktop + <em class="replaceable"><code>application</code></em> must already be installed + in the desktop menu before it can be made the default handler. + The aplication's desktop file must list support for all the + MIME types that it wishes to be the default handler for. + </p><p> + Requests to make an application a default handler may be + subject to system policy or approval by the end-user. xdg-mime + query can be used to verify whether an application is the + actual default handler for a specific file type. + </p><p> + The <span class="emphasis"><em>default</em></span> option is for use inside a desktop session only. + It is not recommended to use xdg-mime default as root. </p></dd><dt><span class="term">install</span></dt><dd> Adds the file type descriptions provided in <em class="replaceable"><code>mimetypes-file</code></em> to the desktop environment. <em class="replaceable"><code>mimetypes-file</code></em> |