Rechercher une page de manuel
mimetypes
Langue: en
Version: 2002-06-06 (mandriva - 22/10/07)
Section: 1 (Commandes utilisateur)
Sommaire
NAME
mimetypes - Script for extracting the mimetypes on the current hostSYNOPSIS
mimetypes [options] [file ...]Options: -h, --help print usage, then exit --man display manual (POD) -d, --debug display debug messages while executing -V, --version display version, then exit --skipKde don't scan KDE registry --skipGnome don't scan GNOME registry --skipBlank don't display unassociated mimetypes --gnomePrefix path for location of GNOME mime info default: /usr/share/mime-info --kdePrefix path for location of KDE mime info default: /usr/share
Inputs: None
Outputs: An Apache-formatted listing of mimetypes will be printed to stdout.
Errors: Warnings about inaccessible directories is normal and can be safely ignored.
DESCRIPTION
mimetypes will scan the current machine and extract the registered mimetypes for KDE and GNOME applications, merge the information and return a sorted, formatted list of mimetypes and file extensions (if any).OPTIONS
- -h, --help
- Print a brief help message and exits.
- --man
- Prints the manual page and exits.
- -d, --debug=N
- Prints various debug messages to stdout during execution. Specify the debug level as a positive integer; the higher the number the more output.
- -V, --version
- Displays the current version of the program and exits.
- --skipKde
- Suppresses scanning of the KDE mimetype registry. This causes mimetypes to only display mimetype mappings for GNOME (and whatever files provided on commandline).
- --skipGnome
- Suppresses scanning of the GNOME mimetype registry. This causes mimetypes to only display mimetype mappings for KDE (and whatever files provided on commandline).
- --skipBlank
- Suppresses display of mimetypes that have no file extensions mapped to them.
- --gnomePrefix=/usr/share/mime-info
- Path to where GNOME's mime information files (such as gnome.mime, gnome-vfs.mime, etc.) are located. By default, the directory /usr/share/mime-info is used.
- --kdePrefix
- Path to where KDE's resource files (*.desktop) can be found. By default the directory /usr/share is assumed.
PREREQUISITES
This script requires the "File::Find", "Pod::Usage" and "Getopt::Long" modules.TOPIC CATEGORIES
UtilitiesBUGS
Warnings about not having permission to cd into certain directories is normal and can safely be ignored.The GNOME and KDE mimetype registries include some entries with regular expressions (e.g., [.|]gtkrc, [Mm]akefile, README.*, etc.) For GNOME, these regular expressions are explicitly identified and thereby ignored. For KDE, they are not pointed out, so the mimetypes program attempts to identify and exclude them. However, some patterns, that include only alphanumerics and/or the punctuation characters _.,+-~% will be allowed through, because those characters are allowable in file extensions.
SEE ALSO
mime.typesmime.confs
gnome-mime
COPYRIGHT
mimetypes is Copyright (c) 2002, by Bryce W. Harrington. All rights reserved.
You may distribute this code under the terms of either the GNU General Public License or the Artistic License, as specified in the Perl README file.
AUTHOR
Bryce Harringtion <bryce@osdl.org> <bryce@neptune.net>REVISION
Revision: $Revision: 1.6 $Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre