1XDG-OPEN(1)                     xdg-open Manual                    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
25           Show command synopsis.
26
27       --manual
28           Show this manual page.
29
30       --version
31           Show the xdg-utils version information.
32

EXIT CODES

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

EXAMPLES

50           xdg-open 'http://www.freedesktop.org/'
51
52       Opens the freedesktop.org website in the user's default browser.
53
54           xdg-open /tmp/foobar.png
55
56       Opens the PNG image file /tmp/foobar.png in the user's default image
57       viewing application.
58

AUTHORS

60       Kevin Krammer
61           Author.
62
63       Jeremy White
64           Author.
65
67       Copyright © 2006
68
69
70
71xdg-utils 1.0                     11/05/2016                       XDG-OPEN(1)
Impressum