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 config‐
14       ured the user is prompted with an "open with" menu in the terminal.
15
16       To use this script you need the freedestop mime-info database and the
17       freedesktop desktop-file-utils package. See File::MimeInfo::Applica‐
18       tions(3) for more details.
19

OPTIONS

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

BUGS

57       No known bugs, please mail the author if you find one.
58
59       See File::MimeInfo::Applications(3) and File::DesktopEntry(3) for some
60       limitations.
61

AUTHOR

63       Jaap Karssenberg <pardus@cpan.org>
64
66       Copyright (c) 2002 Jaap G Karssenberg. All rights reserved.  This pro‐
67       gram is free software; you can redistribute it and/or modify it under
68       the same terms as Perl.
69
70       This program is distributed in the hope that it will be useful, but
71       WITHOUT ANY WARRANTY; without even the implied warranty of MER‐
72       CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
73

SEE ALSO

75       mimetype(1), update-mime-database(1), update-desktop-database(1),
76       File::MimeInfo(3), File::MimeInfo::Applications(3)
77
78
79
80perl v5.8.8                       2006-11-16                       MIMEOPEN(1)
Impressum