Home
Main website
Display Sidebar
Hide Ads
Recent Changes
View Source:
update-mime(8)
Edit
PageHistory
Diff
Info
LikePages
UPDATE-MIME !!!UPDATE-MIME NAME SYNOPSIS DESCRIPTION OVERRIDING ORDER CREATING ENTRIES DEPENDENCIES SEE ALSO AUTHOR COPYRIGHT ---- !!NAME update-mime - create or update MIME information !!SYNOPSIS __update-mime__ [[no parameters] !!DESCRIPTION __update-mime__ updates the __/etc/mailcap__ file to reflect mime information changed by a Debian package during installation or removal. !!OVERRIDING ORDER The order of entries in the ''/etc/mailcap'' file can be altered by editing the ''/etc/mailcap.order'' file. Please see the mailcap.order(5) man page for more information. !!CREATING ENTRIES To create entries in the mailcap file, packages need to create a file in the ''/usr/lib/mime/packages'' directory. In this file goes the verbatim desired mailcap entries. In addition to the standard mailcap options (described below) is a new ''priority'' option. Specifying this will provide for simple ranking of programs within a given mime type. An animation viewer, for example, may be able to display a static picture, but probably wouldn't be the best choice and so would give an option like ''priority'' option is omitted, a value of 5 is used. The following are standard options that can be specified in the mailcap entry. Options are separated by semicolons (;) but must all be on the same line. Each line should look like: mime/type; viewer; option; another=val; etc; priority=5 Mime types of the form __Commands__ __view=__ Specifies the program to run to view a file of the given content-type. Actually, the This option connot be omitted.__ When writing an entry that has no viewer, use a value of ''false'' in this space. __compose=__ The __composetyped=__ The __edit=__ The __print=__ The __Modifiers__ These options are modifiers to all the commands specified on the command line. __test=__ The __Note:__ When testing for X by looking at the ''DISPLAY'' environment variable, please use one of: test=test -z Many programs recognize these strings and optimize for them. __needsterminal__ The __copiousoutput__ The __Content-Type Info__ These options provide additional information about the given content-type. __description=__ The __textualnewlines__ The __x11-bitmap=__ The __nametemplate=__ The !!DEPENDENCIES Packages that wish to provide MIME access to themselves should __not__ depend on, recommend, or suggest __mime-support.__ Instead, they should just put something like the following in the ''postinst'' and ''postrm'' scripts. if [[ -x /usr/sbin/update-mime ]; then update-mime fi !!SEE ALSO mailcap.order(5), RFC-2046, RFC-1524 !!AUTHOR __update-mime__ was written by Brian White __ !!COPYRIGHT __update-mime__ is in the public domain (the only true __ ----
6 pages link to
update-mime(8)
:
print(1)
Man8u
run-mailcap(1)
see(1)
compose(1)
edit(1)
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.