1XDG-OPEN(1) xdg-open Manual XDG-OPEN(1)
2
3
4
6 xdg-open - opens a file or URL in the user's preferred application
7
9 xdg-open {file | URL}
10
11 xdg-open {--help | --manual | --version}
12
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
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
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
50 xdg-mime(1), xdg-settings(1), MIME applications associations
51 specification[1]
52
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
64 Kevin Krammer
65 Author.
66
67 Jeremy White
68 Author.
69
71 Copyright © 2006
72
74 1. MIME applications associations specification
75 http://www.freedesktop.org/wiki/Specifications/mime-apps-spec/
76
77
78
79xdg-utils 1.0 01/31/2020 XDG-OPEN(1)