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

SEE ALSO

50       xdg-mime(1), xdg-settings(1), MIME applications associations
51       specification[1]
52

EXAMPLES

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

AUTHORS

64       Kevin Krammer
65           Author.
66
67       Jeremy White
68           Author.
69
71       Copyright © 2006
72

NOTES

74        1. MIME applications associations specification
75           http://www.freedesktop.org/wiki/Specifications/mime-apps-spec/
76
77
78
79xdg-utils 1.0                     07/23/2021                       XDG-OPEN(1)
Impressum