OLD | NEW |
1 <?xml version="1.0"?> | 1 <?xml version="1.0"?> |
2 <?xml-stylesheet type="text/xsl" | 2 <?xml-stylesheet type="text/xsl" |
3 href="http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
"?> | 3 href="http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
"?> |
4 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" | 4 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" |
5 "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [ | 5 "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [ |
6 ]> | 6 ]> |
7 <refentry id="xdg-mime"> | 7 <refentry id="xdg-mime"> |
8 <refentryinfo> | 8 <refentryinfo> |
9 <title>xdg-mime Manual</title> | 9 <title>xdg-mime Manual</title> |
10 <copyright> | 10 <copyright> |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 </simpara> | 137 </simpara> |
138 </listitem> | 138 </listitem> |
139 </varlistentry> | 139 </varlistentry> |
140 | 140 |
141 <varlistentry> | 141 <varlistentry> |
142 <term>install</term> | 142 <term>install</term> |
143 <listitem> | 143 <listitem> |
144 <simpara> | 144 <simpara> |
145 Adds the file type descriptions provided in <replaceable>mimetypes-f
ile</replaceable> | 145 Adds the file type descriptions provided in <replaceable>mimetypes-f
ile</replaceable> |
146 to the desktop environment. <replaceable>mimetypes-file</replaceable
> | 146 to the desktop environment. <replaceable>mimetypes-file</replaceable
> |
147 must be a XML file that follows the freedesktop.org | 147 must be a XML file that follows the freedesktop.org |
148 Shared MIME-info Database specification | 148 Shared MIME-info Database specification |
149 and that has a mime-info element as its document root. For | 149 and that has a mime-info element as its document root. For |
150 each new file type one or more icons with name | 150 each new file type one or more icons with name |
151 <replaceable>major</replaceable>-<replaceable>minor</replaceable> | 151 <replaceable>type</replaceable>-<replaceable>subtype</replaceable> |
152 must be installed with the <command>xdg-icon-resource</command> | 152 must be installed with the <command>xdg-icon-resource</command> |
153 command in the <emphasis>mimetypes</emphasis> context. For example t
he | 153 command in the <emphasis>mimetypes</emphasis> context. For example t
he |
154 application/vnd.oasis.opendocument.text filetype requires an | 154 filetype application/vnd.oasis.opendocument.text requires an |
155 icon by the name of application-vnd.oasis.opendocument.text | 155 icon named application-vnd.oasis.opendocument.text |
156 to be installed. | 156 to be installed (unless the file type recommends another icon name). |
157 </simpara> | 157 </simpara> |
158 </listitem> | 158 </listitem> |
159 </varlistentry> | 159 </varlistentry> |
160 | 160 |
161 <varlistentry> | 161 <varlistentry> |
162 <term>uninstall</term> | 162 <term>uninstall</term> |
163 <listitem> | 163 <listitem> |
164 <simpara> | 164 <simpara> |
165 Removes the file type descriptions provided in <replaceable>mimetype
s-file</replaceable> | 165 Removes the file type descriptions provided in <replaceable>mimetype
s-file</replaceable> |
166 and previously added with <command>xdg-mime install</command> from t
he | 166 and previously added with <command>xdg-mime install</command> from t
he |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
364 </mime-type> | 364 </mime-type> |
365 </mime-info> | 365 </mime-info> |
366 </programlisting>An icon for this new file type must also be installed, for | 366 </programlisting>An icon for this new file type must also be installed, for |
367 example with: | 367 example with: |
368 <programlisting> | 368 <programlisting> |
369 xdg-icon-resource install --context mimetypes --size 64 shiny-file-icon.png text
-x-shiny | 369 xdg-icon-resource install --context mimetypes --size 64 shiny-file-icon.png text
-x-shiny |
370 </programlisting> | 370 </programlisting> |
371 </para> | 371 </para> |
372 </refsect1> | 372 </refsect1> |
373 </refentry> | 373 </refentry> |
OLD | NEW |