164 lines
4.7 KiB
HTML
164 lines
4.7 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of MIMEOPEN</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>MIMEOPEN</H1>
|
|
Section: User Contributed Perl Documentation (1p)<BR>Updated: 2018-08-06<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>
|
|
|
|
mimeopen - Open files by mimetype
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
|
|
|
|
mimeopen [options] [-] files
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
|
|
|
|
This script tries to determine the mimetype of a file and open it with the
|
|
default desktop application. If no default application is configured the
|
|
user is prompted with an ``open with'' menu in the terminal.
|
|
<P>
|
|
|
|
To use this script you need the freedesktop mime-info database and the
|
|
freedesktop desktop-file-utils package. See <I><A HREF="/cgi-bin/man/man2html?3+File::MimeInfo::Applications">File::MimeInfo::Applications</A></I>(3)
|
|
for more details.
|
|
<A NAME="lbAE"> </A>
|
|
<H2>OPTIONS</H2>
|
|
|
|
|
|
|
|
<DL COMPACT>
|
|
<DT id="1"><B>-a</B>, <B>--ask</B><DD>
|
|
|
|
|
|
Do not execute the default application but ask which application to run.
|
|
This does not change the default application.
|
|
<DT id="2"><B>-d</B>, <B>--ask-default</B><DD>
|
|
|
|
|
|
Let the user choose a new default program for given files.
|
|
<DT id="3"><B>-n</B>, <B>--no-ask</B><DD>
|
|
|
|
|
|
Don't ask the user which program to use. Choose the default program or the
|
|
first program known to handle the file mimetype. This does not set the
|
|
default application.
|
|
<DT id="4"><B>-M</B>, <B>--magic-only</B><DD>
|
|
|
|
|
|
Do not check for extensions, globs or inode type, only look at the content
|
|
of the file. This is particularly useful if for some reason you don't trust
|
|
the name or the extension a file has.
|
|
<DT id="5"><B>--database</B>=<I>mimedir</I>:<I>mimedir</I>:...<DD>
|
|
|
|
|
|
Force the program to look in these directories for the shared mime-info
|
|
database. The directories specified by the basedir specification
|
|
are ignored.
|
|
<DT id="6"><B>-D</B>, <B>--debug</B><DD>
|
|
|
|
|
|
Print debug information about how the mimetype was determined.
|
|
<DT id="7"><B>-h</B>, <B>--help</B><DD>
|
|
|
|
|
|
|
|
<DT id="8"><B>-u</B>, <B>--usage</B><DD>
|
|
|
|
|
|
|
|
Print a help message and exits.
|
|
<DT id="9"><B>-v</B>, <B>--version</B><DD>
|
|
|
|
|
|
Print the version of the program and exit.
|
|
</DL>
|
|
<A NAME="lbAF"> </A>
|
|
<H2>DEPRECATED OPTIONS</H2>
|
|
|
|
|
|
|
|
<DL COMPACT>
|
|
<DT id="10"><B>-L</B>, <B>--dereference</B><DD>
|
|
|
|
|
|
Follow symbolic links.
|
|
Deprecated because this is the logical default for this command.
|
|
Ignored silently.
|
|
</DL>
|
|
<A NAME="lbAG"> </A>
|
|
<H2>BUGS</H2>
|
|
|
|
|
|
|
|
If you find bugs, please file them in our Github
|
|
issue tracker at <<A HREF="https://github.com/mbeijen/File-MimeInfo/issues">https://github.com/mbeijen/File-MimeInfo/issues</A>>.
|
|
<P>
|
|
|
|
See <I><A HREF="/cgi-bin/man/man2html?3+File::MimeInfo::Applications">File::MimeInfo::Applications</A></I>(3) and <I><A HREF="/cgi-bin/man/man2html?3+File::DesktopEntry">File::DesktopEntry</A></I>(3)
|
|
for some limitations.
|
|
<A NAME="lbAH"> </A>
|
|
<H2>AUTHOR</H2>
|
|
|
|
|
|
|
|
Jaap Karssenberg <<A HREF="mailto:pardus@cpan.org">pardus@cpan.org</A>>
|
|
Maintained by Michiel Beijen <<A HREF="mailto:michiel.beijen@gmail.com">michiel.beijen@gmail.com</A>>
|
|
<A NAME="lbAI"> </A>
|
|
<H2>COPYRIGHT</H2>
|
|
|
|
|
|
|
|
Copyright (c) 2002, 2012 Jaap G Karssenberg. All rights reserved.
|
|
This program is free software; you can redistribute it and/or
|
|
modify it under the same terms as Perl.
|
|
<P>
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but <FONT SIZE="-1">WITHOUT ANY WARRANTY</FONT>; without even the implied warranty of
|
|
<FONT SIZE="-1">MERCHANTABILITY</FONT> or <FONT SIZE="-1">FITNESS FOR A PARTICULAR PURPOSE.</FONT>
|
|
<A NAME="lbAJ"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
|
|
|
|
<I><A HREF="/cgi-bin/man/man2html?1+mimetype">mimetype</A></I>(1),
|
|
<I><A HREF="/cgi-bin/man/man2html?1+update-mime-database">update-mime-database</A></I>(1),
|
|
<I><A HREF="/cgi-bin/man/man2html?1+update-desktop-database">update-desktop-database</A></I>(1),
|
|
<I><A HREF="/cgi-bin/man/man2html?3+File::MimeInfo">File::MimeInfo</A></I>(3),
|
|
<I><A HREF="/cgi-bin/man/man2html?3+File::MimeInfo::Applications">File::MimeInfo::Applications</A></I>(3)
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="11"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="12"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="13"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="14"><A HREF="#lbAE">OPTIONS</A><DD>
|
|
<DT id="15"><A HREF="#lbAF">DEPRECATED OPTIONS</A><DD>
|
|
<DT id="16"><A HREF="#lbAG">BUGS</A><DD>
|
|
<DT id="17"><A HREF="#lbAH">AUTHOR</A><DD>
|
|
<DT id="18"><A HREF="#lbAI">COPYRIGHT</A><DD>
|
|
<DT id="19"><A HREF="#lbAJ">SEE ALSO</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:19 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|