Penguin
Blame: update-mime(8)
EditPageHistoryDiffInfoLikePages
Annotated edit history of update-mime(8) version 2 showing authors affecting page license. View with all changes included.
Rev Author # Line
1 perry 1 UPDATE-MIME
2 !!!UPDATE-MIME
3 NAME
4 SYNOPSIS
5 DESCRIPTION
6 OVERRIDING ORDER
7 CREATING ENTRIES
8 DEPENDENCIES
9 SEE ALSO
10 AUTHOR
11 COPYRIGHT
12 ----
13 !!NAME
14
15
16 update-mime - create or update MIME information
17 !!SYNOPSIS
18
19
20 __update-mime__ [[no parameters]
21 !!DESCRIPTION
22
23
24 __update-mime__ updates the __/etc/mailcap__ file to
25 reflect mime information changed by a Debian package during
26 installation or removal.
27 !!OVERRIDING ORDER
28
29
30 The order of entries in the ''/etc/mailcap'' file can be
31 altered by editing the ''/etc/mailcap.order'' file.
32 Please see the mailcap.order(5) man page for more
33 information.
34 !!CREATING ENTRIES
35
36
37 To create entries in the mailcap file, packages need to
38 create a file in the ''/usr/lib/mime/packages''
39 directory. In this file goes the verbatim desired mailcap
40 entries. In addition to the standard mailcap options
41 (described below) is a new ''priority'' option.
42 Specifying this will provide for simple ranking of programs
43 within a given mime type. An animation viewer, for example,
44 may be able to display a static picture, but probably
45 wouldn't be the best choice and so would give an option like
46 ''priority'' option is omitted, a value of 5 is
47 used.
48
49
50 The following are standard options that can be specified in
51 the mailcap entry. Options are separated by semicolons (;)
52 but must all be on the same line. Each line should look
53 like:
54
55
56 mime/type; viewer; option; another=val; etc;
57 priority=5
58
59
60 Mime types of the form
61
62
63 __Commands__
64
65
66 __view=__
67
68
69 Specifies the program to run to view a file of the given
70 content-type. Actually, the
71 This option connot be
72 omitted.__ When writing an entry that has no viewer, use a
73 value of ''false'' in this space.
74
75
76 __compose=__
77
78
79 The
80
81
82 __composetyped=__
83
84
85 The
86
87
88 __edit=__
89
90
91 The
92
93
94 __print=__
95
96
97 The
98
99
100 __Modifiers__
101
102
103 These options are modifiers to all the commands specified on
104 the command line.
105
106
107 __test=__
108
109
110 The
111
112
113 __Note:__ When testing for X by looking at the
114 ''DISPLAY'' environment variable, please use one
115 of:
116
117
118 test=test -z
119
120
121 Many programs recognize these strings and optimize for
122 them.
123
124
125 __needsterminal__
126
127
128 The
129
130
131 __copiousoutput__
132
133
134 The
135
136
137 __Content-Type Info__
138
139
140 These options provide additional information about the given
141 content-type.
142
143
144 __description=__
145
146
147 The
148
149
150 __textualnewlines__
151
152
153 The
154
155
156 __x11-bitmap=__
157
158
159 The
160
161
162 __nametemplate=__
163
164
165 The
166 !!DEPENDENCIES
167
168
169 Packages that wish to provide MIME access to themselves
170 should __not__ depend on, recommend, or suggest
171 __mime-support.__ Instead, they should just put something
172 like the following in the ''postinst'' and ''postrm''
173 scripts.
174
175
176 if [[ -x /usr/sbin/update-mime ]; then
177 update-mime
178 fi
179 !!SEE ALSO
180
181
182 mailcap.order(5), RFC-2046, RFC-1524
183 !!AUTHOR
184
185
186 __update-mime__ was written by Brian White
187 __
188 !!COPYRIGHT
189
190
191 __update-mime__ is in the public domain (the only true
192 __
193 ----
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.