1MIMEOPEN(1)           User Contributed Perl Documentation          MIMEOPEN(1)
2
3
4

NAME

6       mimeopen - Open files by mimetype
7

SYNOPSIS

9       mimeopen [options] [-] files
10

DESCRIPTION

12       This script tries to determine the mimetype of a file and open it with
13       the default desktop application. If no default application is
14       configured the user is prompted with an "open with" menu in the
15       terminal.
16
17       To use this script you need the freedesktop mime-info database and the
18       freedesktop desktop-file-utils package. See
19       File::MimeInfo::Applications(3) for more details.
20

OPTIONS

22       -a, --ask
23           Do not execute the default application but ask which application to
24           run.  This does not change the default application.
25
26       -d, --ask-default
27           Let the user choose a new default program for given files.
28
29       -n, --no-ask
30           Don't ask the user which program to use. Choose the default program
31           or the first program known to handle the file mimetype. This does
32           not set the default application.
33
34       -M, --magic-only
35           Do not check for extensions, globs or inode type, only look at the
36           content of the file. This is particularly useful if for some reason
37           you don't trust the name or the extension a file has.
38
39       --database=mimedir:mimedir:...
40           Force the program to look in these directories for the shared mime-
41           info database. The directories specified by the basedir
42           specification are ignored.
43
44       -D, --debug
45           Print debug information about how the mimetype was determined.
46
47       -h, --help
48       -u, --usage
49           Print a help message and exits.
50
51       -v, --version
52           Print the version of the program and exit.
53

DEPRECATED OPTIONS

55       -L, --dereference
56           Follow symbolic links.  Deprecated because this is the logical
57           default for this command.  Ignored silently.
58

BUGS

60       If you find bugs, please file them in our Github issue tracker at
61       <https://github.com/mbeijen/File-MimeInfo/issues>.
62
63       See File::MimeInfo::Applications(3) and File::DesktopEntry(3) for some
64       limitations.
65

AUTHOR

67       Jaap Karssenberg <pardus@cpan.org> Maintained by Michiel Beijen
68       <mb@x14.nl>
69
71       Copyright (c) 2002, 2012 Jaap G Karssenberg. All rights reserved.  This
72       program is free software; you can redistribute it and/or modify it
73       under the same terms as Perl.
74
75       This program is distributed in the hope that it will be useful, but
76       WITHOUT ANY WARRANTY; without even the implied warranty of
77       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
78

SEE ALSO

80       mimetype(1), update-mime-database(1), update-desktop-database(1),
81       File::MimeInfo(3), File::MimeInfo::Applications(3)
82
83
84
85perl v5.34.0                      2022-03-07                       MIMEOPEN(1)
Impressum