summaryrefslogtreecommitdiff
path: root/scripts/desc
diff options
context:
space:
mode:
authorWaldo Bastian <waldo.bastian@intel.com>2006-07-14 07:19:18 +0000
committerWaldo Bastian <waldo.bastian@intel.com>2006-07-14 07:19:18 +0000
commitdb915088f509272835b935d8154241ef09a6c9aa (patch)
tree6435edf0c1cf78ae8b26b0c79b78229c8020ad26 /scripts/desc
parent13c4a60e9c44429f733232bb035e472605960276 (diff)
Added xdg-mime default to change the default application
Diffstat (limited to 'scripts/desc')
-rw-r--r--scripts/desc/xdg-mime.xml37
1 files changed, 37 insertions, 0 deletions
diff --git a/scripts/desc/xdg-mime.xml b/scripts/desc/xdg-mime.xml
index 0fb00a6..bd8929e 100644
--- a/scripts/desc/xdg-mime.xml
+++ b/scripts/desc/xdg-mime.xml
@@ -46,6 +46,12 @@ and adding descriptions for new file types</refpurpose>
</cmdsynopsis>
<cmdsynopsis>
<command>xdg-mime</command>
+ <arg choice="plain">default</arg>
+ <arg choice="plain"><replaceable>application</replaceable></arg>
+ <arg choice="plain"><replaceable>mimetype(s)</replaceable></arg>
+ </cmdsynopsis>
+ <cmdsynopsis>
+ <command>xdg-mime</command>
<arg choice="plain">install</arg>
<group choice="req">
<arg choice="plain"><option>--user</option></arg>
@@ -108,6 +114,37 @@ and adding descriptions for new file types</refpurpose>
</varlistentry>
<varlistentry>
+ <term>default</term>
+ <listitem>
+ <simpara>
+ Ask the desktop environment to make <replaceable>application</replaceable>
+ the default application for opening
+ files of type <replaceable>mimetype</replaceable>. An
+ application can be made the default for several file types by
+ specifying multiple mimetypes.
+ </simpara>
+ <simpara>
+ <replaceable>application</replaceable> is the desktop file
+ id of the application and has the form vendor-name.desktop
+ <replaceable>application</replaceable> 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.
+ </simpara>
+ <simpara>
+ 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.
+ </simpara>
+ <simpara>
+ The <emphasis>default</emphasis> option is for use inside a desktop session only.
+ It is not recommended to use xdg-mime default as root.
+ </simpara>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
<term>install</term>
<listitem>
<simpara>