1XDG-OPEN(1)                                                        XDG-OPEN(1)
2
3
4

NAME

6       xdg-open - opens a file or URL in the user's preferred application
7

SYNOPSIS

9       xdg-open {file URL}
10
11       xdg-open {--help --manual --version}
12

DESCRIPTION

14       xdg-open opens a file or URL in the user's preferred application. If a
15       URL is provided the URL will be opened in the user's preferred web
16       browser. If a file is provided the file will be opened in the preferred
17       application for files of that type. xdg-open supports file, ftp, http
18       and https URLs.
19
20       xdg-open is for use inside a desktop session only. It is not
21       recommended to use xdg-open as root.
22

OPTIONS

24       --help Show command synopsis.
25
26       --manual
27              Show this manualpage.
28
29       --version
30              Show the xdg-utils version information.
31

EXIT CODES

33       An exit code of 0 indicates success while a non-zero exit code
34       indicates failure. The following failure codes can be returned:
35
36       1      Error in command line syntax.
37
38       2      One of the files passed on the command line did not exist.
39
40       3      A required tool could not be found.
41
42       4      The action failed.
43

EXAMPLES

45       xdg-open 'http://www.freedesktop.org/'
46
47       Opens the Freedesktop.org website in the user's default browser
48
49       xdg-open /tmp/foobar.png
50
51       Opens the PNG image file /tmp/foobar.png in the user's default image
52       viewing application.
53

AUTHOR

55       Kevin Krammer, Jeremy White.
56       <kevin.krammer@gmx.at>
57       <jwhite@codeweavers.com>
58
59
60
61xdg-utils 1.0                     06/24/2007                       XDG-OPEN(1)
Impressum