213 lines
3.8 KiB
HTML
213 lines
3.8 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of XDG-OPEN</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>XDG-OPEN</H1>
|
|
Section: xdg-open Manual (1)<BR>Updated: 01/11/2021<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
xdg-open - opens a file or URL in the user's preferred application
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<DL COMPACT>
|
|
<DT id="1">
|
|
<B>xdg-open</B> {<B></B><I>file</I> | <B></B><I>URL</I>}
|
|
<DT id="2">
|
|
<B>xdg-open</B> {<B>--help</B> | <B>--manual</B> | <B>--version</B>}
|
|
</DL>
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
<P>
|
|
|
|
<DD>xdg-open opens a file or URL in the user's preferred application. If a URL is provided the URL will be opened in the user's preferred web browser. If a file is provided the file will be opened in the preferred application for files of that type. xdg-open supports file, ftp, http and https URLs.
|
|
<P>
|
|
|
|
xdg-open is for use inside a desktop session only. It is not recommended to use xdg-open as root.
|
|
<A NAME="lbAE"> </A>
|
|
<H2>OPTIONS</H2>
|
|
|
|
<P>
|
|
|
|
<B>--help</B>
|
|
<DL COMPACT><DT id="3"><DD>
|
|
Show command synopsis.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>--manual</B>
|
|
<DL COMPACT><DT id="4"><DD>
|
|
Show this manual page.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>--version</B>
|
|
<DL COMPACT><DT id="5"><DD>
|
|
Show the xdg-utils version information.
|
|
</DL>
|
|
|
|
<A NAME="lbAF"> </A>
|
|
<H2>EXIT CODES</H2>
|
|
|
|
<P>
|
|
|
|
An exit code of 0 indicates success while a non-zero exit code indicates failure. The following failure codes can be returned:
|
|
<P>
|
|
|
|
<B>1</B>
|
|
<DL COMPACT><DT id="6"><DD>
|
|
Error in command line syntax.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>2</B>
|
|
<DL COMPACT><DT id="7"><DD>
|
|
One of the files passed on the command line did not exist.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>3</B>
|
|
<DL COMPACT><DT id="8"><DD>
|
|
A required tool could not be found.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>4</B>
|
|
<DL COMPACT><DT id="9"><DD>
|
|
The action failed.
|
|
</DL>
|
|
|
|
<A NAME="lbAG"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
<P>
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?1+xdg-mime">xdg-mime</A></B>(1),
|
|
<B><A HREF="/cgi-bin/man/man2html?1+xdg-settings">xdg-settings</A></B>(1),
|
|
m[blue]<B>MIME applications associations specification</B>m[]<FONT SIZE="-2">[1]</FONT>
|
|
<A NAME="lbAH"> </A>
|
|
<H2>EXAMPLES</H2>
|
|
|
|
<P>
|
|
|
|
<DL COMPACT><DT id="10"><DD>
|
|
|
|
|
|
|
|
<PRE>
|
|
xdg-open '<A HREF="http://www.freedesktop.org/'">http://www.freedesktop.org/'</A>
|
|
</PRE>
|
|
|
|
</DL>
|
|
|
|
|
|
|
|
|
|
<P>
|
|
Opens the freedesktop.org website in the user's default browser.
|
|
<P>
|
|
|
|
<DL COMPACT><DT id="11"><DD>
|
|
|
|
|
|
|
|
<PRE>
|
|
xdg-open /tmp/foobar.png
|
|
</PRE>
|
|
|
|
</DL>
|
|
|
|
|
|
|
|
|
|
<P>
|
|
Opens the PNG image file /tmp/foobar.png in the user's default image viewing application.
|
|
<A NAME="lbAI"> </A>
|
|
<H2>AUTHORS</H2>
|
|
|
|
<P>
|
|
|
|
<B>Kevin Krammer</B>
|
|
<DL COMPACT><DT id="12"><DD>
|
|
Author.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>Jeremy White</B>
|
|
<DL COMPACT><DT id="13"><DD>
|
|
Author.
|
|
</DL>
|
|
|
|
<A NAME="lbAJ"> </A>
|
|
<H2>COPYRIGHT</H2>
|
|
|
|
<BR>
|
|
|
|
Copyright © 2006
|
|
<BR>
|
|
|
|
<A NAME="lbAK"> </A>
|
|
<H2>NOTES</H2>
|
|
|
|
<DL COMPACT>
|
|
<DT id="14"> 1.<DD>
|
|
MIME applications associations specification
|
|
<DL COMPACT><DT id="15"><DD>
|
|
<A HREF="http://www.freedesktop.org/wiki/Specifications/mime-apps-spec/">http://www.freedesktop.org/wiki/Specifications/mime-apps-spec/</A>
|
|
</DL>
|
|
|
|
<P>
|
|
</DL>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="16"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="17"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="18"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="19"><A HREF="#lbAE">OPTIONS</A><DD>
|
|
<DT id="20"><A HREF="#lbAF">EXIT CODES</A><DD>
|
|
<DT id="21"><A HREF="#lbAG">SEE ALSO</A><DD>
|
|
<DT id="22"><A HREF="#lbAH">EXAMPLES</A><DD>
|
|
<DT id="23"><A HREF="#lbAI">AUTHORS</A><DD>
|
|
<DT id="24"><A HREF="#lbAJ">COPYRIGHT</A><DD>
|
|
<DT id="25"><A HREF="#lbAK">NOTES</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:05:30 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|