OLD | NEW |
1 <html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859
-1"><title>xdg-open</title><meta name="generator" content="DocBook XSL Styleshee
ts V1.69.1"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840
084" 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="r
efsynopsisdiv"><h2>Synopsis</h2><div class="cmdsynopsis"><p><code class="command
">xdg-open</code> { <code class="option"><em class="replaceable"><code>file</co
de></em></code> | <code class="option"><em class="replaceable"><code>URL</cod
e></em></code> }</p></div><div class="cmdsynopsis"><p><code class="command">xdg-
open</code> { <code class="option">--help</code> | <code class="option">--ma
nual</code> | <code class="option">--version</code> }</p></div></div><div cla
ss="refsect1" lang="en"><a name="description"></a><h2>Description</h2><p> | 1 <html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859
-1"><title>xdg-open</title><meta name="generator" content="DocBook XSL Styleshee
ts V1.75.2"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840
084" alink="#0000FF"><div class="refentry" title="xdg-open"><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 c
lass="refsynopsisdiv" title="Synopsis"><h2>Synopsis</h2><div class="cmdsynopsis"
><p><code class="command">xdg-open</code> { <code class="option"><em class="rep
laceable"><code>file</code></em></code> | <code class="option"><em class="rep
laceable"><code>URL</code></em></code> }</p></div><div class="cmdsynopsis"><p><c
ode 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" title="Description"><a name="description">
</a><h2>Description</h2><p> |
2 xdg-open opens a file or URL in the user's preferred application. | 2 xdg-open opens a file or URL in the user's preferred application. |
3 If a URL is provided the URL will be opened in the user's preferred | 3 If a URL is provided the URL will be opened in the user's preferred |
4 web browser. If a file is provided the file will be opened in the | 4 web browser. If a file is provided the file will be opened in the |
5 preferred application for files of that type. xdg-open supports | 5 preferred application for files of that type. xdg-open supports |
6 file, ftp, http and https URLs. | 6 file, ftp, http and https URLs. |
7 </p><p> | 7 </p><p> |
8 xdg-open is for use inside a desktop session only. | 8 xdg-open is for use inside a desktop session only. |
9 It is not recommended to use xdg-open as root. | 9 It is not recommended to use xdg-open as root. |
10 </p></div><div class="refsect1" lang="en"><a name="options"></a><h2>Options<
/h2><div class="variablelist"><dl><dt><span class="term"><code class="option">--
help</code></span></dt><dd> | 10 </p></div><div class="refsect1" title="Options"><a name="options"></a><h2>Op
tions</h2><div class="variablelist"><dl><dt><span class="term"><code class="opti
on">--help</code></span></dt><dd> |
11 Show command synopsis. | 11 Show command synopsis. |
12 </dd><dt><span class="term"><code class="option">--manual</code></span
></dt><dd> | 12 </dd><dt><span class="term"><code class="option">--manual</code></span
></dt><dd> |
13 Show this manualpage. | 13 Show this manualpage. |
14 </dd><dt><span class="term"><code class="option">--version</code></spa
n></dt><dd> | 14 </dd><dt><span class="term"><code class="option">--version</code></spa
n></dt><dd> |
15 Show the xdg-utils version information. | 15 Show the xdg-utils version information. |
16 </dd></dl></div></div><div class="refsect1" lang="en"><a name="exitcod
es"></a><h2>Exit Codes</h2><p> | 16 </dd></dl></div></div><div class="refsect1" title="Exit Codes"><a name
="exitcodes"></a><h2>Exit Codes</h2><p> |
17 An exit code of 0 indicates success while a non-zero exit code | 17 An exit code of 0 indicates success while a non-zero exit code |
18 indicates failure. The following failure codes can be returned: | 18 indicates failure. The following failure codes can be returned: |
19 </p><div class="variablelist"><dl><dt><span class="term"><code class="option
">1</code></span></dt><dd> | 19 </p><div class="variablelist"><dl><dt><span class="term"><code class="option
">1</code></span></dt><dd> |
20 Error in command line syntax. | 20 Error in command line syntax. |
21 </dd><dt><span class="term"><code class="option">2</code></span></dt><
dd> | 21 </dd><dt><span class="term"><code class="option">2</code></span></dt><
dd> |
22 One of the files passed on the command line did not exist. | 22 One of the files passed on the command line did not exist. |
23 </dd><dt><span class="term"><code class="option">3</code></span></dt><
dd> | 23 </dd><dt><span class="term"><code class="option">3</code></span></dt><
dd> |
24 A required tool could not be found. | 24 A required tool could not be found. |
25 </dd><dt><span class="term"><code class="option">4</code></span></dt><
dd> | 25 </dd><dt><span class="term"><code class="option">4</code></span></dt><
dd> |
26 The action failed. | 26 The action failed. |
27 » </dd></dl></div></div><div class="refsect1" lang="en"><a name="example
s"></a><h2>Examples</h2><p> | 27 » </dd></dl></div></div><div class="refsect1" title="Examples"><a name="
examples"></a><h2>Examples</h2><p> |
28 </p><pre class="programlisting"> | 28 </p><pre class="programlisting"> |
29 xdg-open 'http://www.freedesktop.org/' | 29 xdg-open 'http://www.freedesktop.org/' |
30 </pre><p> | 30 </pre><p> |
31 Opens the Freedesktop.org website in the user's default browser | 31 Opens the Freedesktop.org website in the user's default browser |
32 </p><p> | 32 </p><p> |
33 </p><pre class="programlisting"> | 33 </p><pre class="programlisting"> |
34 xdg-open /tmp/foobar.png | 34 xdg-open /tmp/foobar.png |
35 </pre><p> | 35 </pre><p> |
36 Opens the PNG image file /tmp/foobar.png in the user's default image | 36 Opens the PNG image file /tmp/foobar.png in the user's default image |
37 viewing application. | 37 viewing application. |
38 </p></div></div></body></html> | 38 </p></div></div></body></html> |
OLD | NEW |