360
|
1 # Configuration file for MozPlugger 1.10
|
|
2 # Version: March 22, 2008
|
|
3 #
|
|
4 # Commands which are not installed on your system will not be used.
|
|
5 #
|
|
6 # This program is free software; you can redistribute it and/or modify
|
|
7 # it under the terms of the GNU General Public License as published by
|
|
8 # the Free Software Foundation; either version 2 of the License, or
|
|
9 # (at your option) any later version.
|
|
10 #
|
|
11 # This program is distributed in the hope that it will be useful,
|
|
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
14 # GNU General Public License for more details.
|
|
15 #
|
|
16 # You should have received a copy of the GNU General Public License
|
|
17 # along with this program; if not, write to the Free Software
|
|
18 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
|
|
19
|
|
20
|
|
21 ###################
|
|
22 ### m4 macros ###
|
|
23 ###################
|
|
24
|
|
25 changequote([,])
|
|
26
|
|
27 ### Helpers
|
|
28
|
|
29 #define(ENABLE_HELPERS)
|
|
30
|
|
31 ifdef([ENABLE_HELPERS],[
|
|
32 define(HELPER,[nokill noisy: $1])
|
|
33 ],[
|
|
34 define(HELPER,[])
|
|
35 ])
|
|
36
|
|
37 ### MPlayer
|
|
38
|
|
39 define(MP_CMD,[mplayer -really-quiet -nojoystick -nofs -zoom -vo xv,x11 -ao esd,alsa,oss,arts,null -osdlevel 0 $1 </dev/null])
|
|
40
|
|
41 define(MP_EMBED,[embed noisy ignore_errors: MP_CMD(-xy $width -wid $window $1)])
|
|
42
|
|
43 define(MP_NOEMBED,[noembed noisy ignore_errors maxaspect swallow(MPlayer): MP_CMD($1)])
|
|
44
|
|
45 # If you want a small controls in top left corner of embedded window when using
|
|
46 # mplayer then uncomment the first and comment the second below
|
|
47
|
|
48 #define(MP_VIDEO_STREAM,[controls stream MP_EMBED($1 "$file")
|
|
49 # stream MP_NOEMBED($1 "$file")])
|
|
50
|
|
51 define(MP_VIDEO_STREAM,[stream MP_EMBED($1 "$file")
|
|
52 stream MP_NOEMBED($1 "$file")])
|
|
53
|
|
54 define(MP_VIDEO_PLAYLIST, [fmatch($1) stream MP_EMBED(-playlist "$file")
|
|
55 fmatch($1) stream MP_NOEMBED(-playlist "$file")])
|
|
56 # Special case for Quicktime
|
|
57 define(MP_LINKS,[stream links controls noisy ignore_errors: MP_CMD($1)])
|
|
58
|
|
59 define(MP_AUDIO,[mplayer -really-quiet -nojoystick $1 </dev/null])
|
|
60
|
|
61 define(MP_AUDIO_STREAM,[controls stream noisy ignore_errors: mplayer -really-quiet -nojoystick $1 "$file" </dev/null])
|
|
62
|
|
63 ifelse(esyscmd([mplayer -afm help 2>&1 | grep vorbis]),[],[
|
|
64 define(MP_NO_VORBIS)
|
|
65 ],[
|
|
66 define(MP_VORBIS)
|
|
67 ])
|
|
68
|
|
69 ### Totem
|
|
70
|
|
71 define(TM_CMD,[totem $1</dev/null])
|
|
72
|
|
73 define(TM_EMBED,[embed noisy ignore_errors hidden fill swallow(Totem): TM_CMD(--toggle-controls $1)])
|
|
74
|
|
75 define(TM_NOEMBED,[nokill noembed noisy ignore_errors: TM_CMD($1)])
|
|
76
|
|
77
|
|
78 define(TM_VIDEO_STREAM,[stream TM_EMBED("$file")
|
|
79 stream TM_NOEMBED("$file")])
|
|
80
|
|
81 # Special case for Quicktime
|
|
82 define(TM_LINKS,[stream links controls nokill noembed noisy ignore_errors: TM_CMD($1)])
|
|
83
|
|
84 define(TM_AUDIO_STREAM,[controls stream noisy ignore_errors: TM_CMD("$file")])
|
|
85
|
|
86 ### OpenOffice
|
|
87 define([OO],[swallow(VCLSalFrame) fill: ooffice2.0 -nologo -norestore -view $1 "$file"
|
|
88 swallow(VCLSalFrame) fill: ooffice -nologo -norestore -view $1 "$file"
|
|
89 swallow(VCLSalFrame) fill: soffice -nologo $1 "$file"])
|
|
90
|
|
91 ### Acrobat Reader
|
|
92 define(ACROREAD_OPTS,[-openInNewWindow])
|
|
93 define(ACROREAD_OPTS5,[-geometry +9000+9000 +useFrontEndPanel])
|
|
94
|
|
95 define(ACROREAD_FLAGS,[repeat swallow(acroread) fill])
|
|
96 define(ACROREAD_FLAGS5,[repeat swallow(documentShell) fill])
|
|
97
|
|
98 # Trap only version 5 assume the rest work OK (6 onwards...)
|
|
99 ifelse(esyscmd([acroread -v | grep "^[^0-9]*5\..*$"]), [], [
|
|
100 define(ACROREAD, [ACROREAD_FLAGS() : acroread ACROREAD_OPTS() "$file"])
|
|
101 ],[
|
|
102 define(ACROREAD, [ACROREAD_FLAGS5() : acroread ACROREAD_OPTS5() "$file"])
|
|
103 ])
|
|
104
|
|
105 ### GV
|
|
106 define(GV_OPTS,[--safer --quiet --antialias -geometry +9000+9000])
|
|
107 define(GV_FLAGS,[repeat noisy swallow(gv) fill])
|
|
108 define(GV,[GV_FLAGS(): gv GV_OPTS() "$file"])
|
|
109
|
|
110 ###################
|
|
111 ### Video ###
|
|
112 ###################
|
|
113
|
|
114 video/mpeg:mpeg,mpg,mpe:MPEG animation
|
|
115 video/x-mpeg:mpeg,mpg,mpe:MPEG animation
|
|
116 video/x-mpeg2:mpv2,mp2ve:MPEG2 animation
|
|
117 MP_VIDEO_STREAM()
|
|
118 TM_VIDEO_STREAM()
|
|
119 HELPER(xine -pq "$file")
|
|
120 loop: mtvp -l -W$window "$file"
|
|
121 : mtvp -W$window "$file"
|
|
122 loop: xanim +Av100 -Zr +W$window +q +f "$file"
|
|
123 : xanim +Av100 -Zr +W$window +q +Ze +f "$file"
|
|
124
|
|
125 video/mp4:mp4:MPEG4 animation
|
|
126 MP_VIDEO_STREAM()
|
|
127 TM_VIDEO_STREAM()
|
|
128 HELPER(xine -pq "$file")
|
|
129
|
|
130 video/msvideo:avi:AVI animation
|
|
131 video/x-msvideo:avi:AVI animation
|
|
132 video/fli:fli,flc:FLI animation
|
|
133 video/x-fli:fli,flc:FLI animation
|
|
134 MP_VIDEO_STREAM()
|
|
135 TM_VIDEO_STREAM()
|
|
136 HELPER(xine -pq "$file")
|
|
137
|
|
138 application/x-mplayer2:*:Windows Media video
|
|
139 video/x-ms-asf:asf,asx:Windows Media video
|
|
140 video/x-ms-wm:wm:Windows Media video
|
|
141 video/x-ms-wmv:wmv:Windows Media video
|
|
142 video/x-ms-wvx:wvx:Windows Media video
|
|
143 video/x-ms-asf-plugin:*:Window Media video
|
|
144 MP_VIDEO_PLAYLIST(%.asx)
|
|
145 MP_VIDEO_STREAM()
|
|
146 TM_VIDEO_STREAM()
|
|
147
|
|
148 application/asx:asx:Windows Media video
|
|
149 MP_VIDEO_STREAM(-playlist)
|
|
150 TM_VIDEO_STREAM()
|
|
151
|
|
152 application/x-quicktimeplayer:mov:Quicktime animation
|
|
153 image/x-macpaint:pntg,mov:Quicktime animation
|
|
154 video/quicktime:mov,qt:Quicktime animation
|
|
155 video/x-quicktime:mov,qt:Quicktime animation
|
|
156 MP_VIDEO_STREAM()
|
|
157 MP_LINKS("$file")
|
|
158 TM_VIDEO_STREAM()
|
|
159 TM_LINKS("$file")
|
|
160 HELPER(xine -pq "$file")
|
|
161 stream links controls : xine -pq "$file"
|
|
162
|
|
163 video/x-theora:ogg:OGG stream with video
|
|
164 video/theora:ogg:OGG stream with video
|
|
165 video/ogg:ogg:OGG stream with video
|
|
166 video/x-ogg:ogm,ogv:OGG stream with video
|
|
167 ifdef([MP_VORBIS],[ MP_VIDEO_STREAM()
|
|
168 ]) TM_VIDEO_STREAM()
|
|
169
|
|
170 video/dl:dl:DL animation
|
|
171 video/x-dl:dl:DL animation
|
|
172 video/sgi-movie:movie,movi,mv:SGI animation
|
|
173 video/x-sgi-movie:movie,movi,mv:SGI animation
|
|
174 video/anim:iff,anim5,anim3,anim7:IFF animation
|
|
175 video/x-anim:iff,anim5,anim3,anim7:IFF animation
|
|
176 loop: xanim +Av100 -Zr +W$window +q +f "$file"
|
|
177 : xanim +Av100 -Zr +W$window +q +Ze +f "$file"
|
|
178
|
|
179
|
|
180 ##################
|
|
181 ### Audio ###
|
|
182 ##################
|
|
183
|
|
184 audio/mid:midi,mid:MIDI audio file
|
|
185 audio/x-mid:midi,mid:MIDI audio file
|
|
186 audio/midi:midi,mid:MIDI audio file
|
|
187 audio/x-midi:midi,mid:MIDI audio file
|
|
188 controls noisy stream: timidity -Od "$file"
|
|
189 controls: playmidi "$file"
|
|
190
|
|
191 audio/mod:mod:Soundracker audio Module
|
|
192 audio/x-mod:mod:Soundracker audio Module
|
|
193 controls loop noisy: mikmod -q --interpolate "$file"
|
|
194 controls noisy: mikmod -q --interpolate "$file"
|
|
195 controls loop noisy: xmp -l --nocmd "$file"
|
|
196 controls noisy: xmp --nocmd "$file"
|
|
197
|
|
198 audio/mp3:mp3:MPEG audio
|
|
199 audio/x-mp3:mp3:MPEG audio
|
|
200 audio/mpeg2:mp2:MPEG audio
|
|
201 audio/x-mpeg2:mp2:MPEG audio
|
|
202 audio/mpeg3:mp3:MPEG audio
|
|
203 audio/x-mpeg3:mp3:MPEG audio
|
|
204 audio/mpeg:mpa,abs,mpega:MPEG audio
|
|
205 audio/x-mpeg:mpa,abs,mpega:MPEG audio
|
|
206 MP_AUDIO_STREAM()
|
|
207 TM_AUDIO_STREAM()
|
|
208 controls: mpg321 -q "$file"
|
|
209 controls: mpg123 -q "$file"
|
|
210 controls: splay -t 200 "$file"
|
|
211 controls: amp -b 200 -q "$file"
|
|
212 controls: maplay "$file"
|
|
213 controls: mpeg3play "$file"
|
|
214 HELPER(xmms -e -p "$file")
|
|
215 repeat noisy swallow(alsaplayer): alsaplayer -q "$file"
|
|
216
|
|
217 audio/mpeg-url:m3u:MPEG music resource locator
|
|
218 audio/x-mpeg-url:m3u:MPEG music resource locator
|
|
219 audio/mpegurl:m3u:MPEG music resource locator
|
|
220 audio/x-mpegurl:m3u:MPEG music resource locator
|
|
221 audio/mpeg-url:m3u:MPEG music resource locator
|
|
222 audio/x-mpeg-url:m3u:MPEG music resource locator
|
|
223 audio/x-scpls:pls:Shoutcast Playlists
|
|
224 # controls: mpg321 -q -@ "$file"
|
|
225 HELPER(xmms -e -p "$file")
|
|
226
|
|
227 audio/x-ogg:ogg:OGG audio
|
|
228 application/x-ogg:ogg:OGG audio
|
|
229 application/ogg:ogg:OGG audio
|
|
230 ifdef([MP_VORBIS],[ MP_AUDIO_STREAM()
|
|
231 ]) TM_AUDIO_STREAM()
|
|
232 controls stream noisy: ogg123 -q -b 128 "$file"
|
|
233 HELPER(xmms -e -p "$file")
|
|
234
|
|
235 audio/x-flac:flac:FLAC audio
|
|
236 application/x-flac:flac:FLAC audio
|
|
237 MP_AUDIO_STREAM()
|
|
238 HELPER(xmms -e -p "$file")
|
|
239
|
|
240 audio/x-sidtune:sid,psid:Commodore 64 Audio
|
|
241 audio/sidtune:sid,psid:Commodore 64 Audio
|
|
242 audio/psid:psid,sid:Commodore 64 Audio
|
|
243 audio/x-psid:psid,sid:Commodore 64 Audio
|
|
244 controls noisy: sidplay -16 -f44100 -a "$file"
|
|
245
|
|
246 audio/basic:au,snd:Basic audio file
|
|
247 audio/x-basic:au,snd:Basic audio file
|
|
248 controls: play "$file"
|
|
249 controls: sox "$file" -t .au - > /dev/audio
|
|
250
|
|
251 audio/wav:wav:Microsoft wave file
|
|
252 audio/x-wav:wav:Microsoft wave file
|
|
253 audio/x-pn-wav:wav:Microsoft wave file
|
|
254 audio/x-pn-windows-acm:wav:Microsoft wave file
|
|
255 controls: play "$file"
|
|
256 controls: wavplay -q "$file"
|
|
257 controls noisy: bplay "$file"
|
|
258 controls: splay "$file"
|
|
259 HELPER(xmms -e -p "$file")
|
|
260 repeat noisy swallow(alsaplayer): alsaplayer -q "$file"
|
|
261
|
|
262 audio/x-pn-realaudio-plugin:rpm:RealPlayer Plugin Metafile
|
|
263 audio/x-pn-realaudio:ra,rm,ram:Realaudio-plugin resource locator
|
|
264 audio/x-realaudio:ra,rm,ram:RealAudio file
|
|
265 application/vnd.rn-realmedia:rm:RealMedia file
|
|
266 application/smil:smi:RealPlayer
|
|
267 audio/vnd.rn-realaudio:ra,ram:RealAudio file
|
|
268 audio/vnd.rn-realvideo:rv:RealVideo file
|
|
269 nokill stream: hxplay "$file"
|
|
270 nokill stream: realplay "$file"
|
|
271
|
|
272 audio/x-ms-wax:wax:Windows Media Audio
|
|
273 MP_AUDIO_STREAM(-playlist-playlist))
|
|
274 TM_AUDIO_STREAM()
|
|
275
|
|
276 audio/x-ms-wma:wma:Windows Media Audio
|
|
277 MP_AUDIO_STREAM()
|
|
278 TM_AUDIO_STREAM()
|
|
279
|
|
280 #######################
|
|
281 ### Documents ###
|
|
282 #######################
|
|
283
|
|
284 image/sun-raster:rs:SUN raster image
|
|
285 image/x-sun-raster:rs:SUN raster image
|
|
286 image/x-rgb:rgb:RGB Image
|
|
287 image/x-portable-pixmap:ppm:PPM Image
|
|
288 image/x-portable-graymap:pgm:PGM Image
|
|
289 image/x-portable-bitmap:pbm:PBM Image
|
|
290 image/x-portable-anymap:pnm:PBM Image
|
|
291 image/tiff:tiff,tif:TIFF image
|
|
292 image/x-tiff:tiff,tif:TIFF image
|
|
293 exits: display -window $window -backdrop "$file"
|
|
294 repeat noisy swallow(gqview) fill: gqview -t "$file"
|
|
295 swallow(:) maxaspect: xv -ima -igeom +9000+9000 -geometry +9000+9000 "$file"
|
|
296 repeat swallow(display): display "$file"
|
|
297 repeat swallow(Sdtimage) fill: sdtimage "$file"
|
|
298 swallow(*qiv:) fill maxaspect: qiv -n "$file"
|
|
299
|
|
300 image/x-xcf:xcf:Gimp Image
|
|
301 image/xcf:xcf:Gimp Image
|
|
302 application/x-gimp:xcf:Gimp Image
|
|
303 application/gimp:xcf:Gimp Image
|
|
304 exits: display -window $window -backdrop "$file"
|
|
305 repeat swallow(display) fill: display "$file"
|
|
306
|
|
307 application/photoshop:psd:PhotoShop Image
|
|
308 application/x-photoshop:psd:PhotoShop Image
|
|
309 exits: display -window $window -backdrop "$file"
|
|
310 repeat swallow(display) fill: display "$file"
|
|
311
|
|
312 application/pdf:pdf:PDF file
|
|
313 application/x-pdf:pdf:PDF file
|
|
314 text/pdf:pdf:PDF file
|
|
315 text/x-pdf:pdf:PDF file
|
|
316 ACROREAD()
|
|
317 repeat noisy swallow(evince) fill: evince "$file"
|
|
318 repeat noisy swallow(kpdf) fill: kpdf "$file"
|
|
319 repeat noisy swallow(Xpdf) fill: xpdf -g +9000+9000 "$file"
|
|
320 GV()
|
|
321
|
|
322 application/x-dvi:dvi:DVI file
|
|
323 repeat swallow(kdvi) fill: kdvi "$file"
|
|
324 repeat swallow(xdvi) fill: xdvi -safer -hush -geometry +9000+9000 "$file"
|
|
325
|
|
326 application/x-postscript:ps:PostScript file
|
|
327 application/postscript:ps:PostScript file
|
|
328 GV()
|
|
329 repeat noisy swallow(evince) fill: evince "$file"
|
|
330
|
|
331 application/x-rtf:rtf:Rich Text Format
|
|
332 application/rtf:rtf:Rich Text Format
|
|
333 text/rtf:rtf:Rich Text Format
|
|
334 OO()
|
|
335 repeat noisy swallow(AbiWord) fill: abiword --nosplash --geometry +9000+9000 "$file"
|
|
336 repeat noisy swallow(kword): kword "$file"
|
|
337 repeat noisy swallow(Ted) fill: Ted "$file"
|
|
338
|
|
339 application/x-msword:doc,dot:Microsoft Word Document
|
|
340 application/msword:doc,dot:Microsoft Word Document
|
|
341 OO()
|
|
342 repeat noisy swallow(kword): kword "$file"
|
|
343 repeat noisy swallow(AbiWord) fill: abiword --nosplash --geometry +9000+9000 "$file"
|
|
344
|
|
345 application/vnd.ms-excel:xls,xlb:Microsoft Excel Document
|
|
346 OO()
|
|
347 repeat swallow(Gnumeric) fill: gnumeric "$file"
|
|
348
|
|
349 # OpenOffice MimeTypes (http://framework.openoffice.org/documentation/mimetypes/mimetypes.html)
|
|
350 application/vnd.sun.xml.writer:sxw:OpenOffice Writer 6.0 documents
|
|
351 application/so7_vnd.sun.xml.writer:sxw:OpenOffice Writer 7.0 documents
|
|
352 application/vnd.sun.xml.writer.template:stw:OpenOffice Writer 6.0 templates
|
|
353 application/vnd.sun.xml.writer.global:sxg:OpenOffice Writer 6.0 global documents
|
|
354 application/vnd.stardivision.writer:sdw:StarWriter 5.x documents
|
|
355 application/vnd.stardivision.writer-global:sgl:StarWriter 5.x global documents
|
|
356 application/x-starwriter:sdw:StarWriter 4.x documents
|
|
357 OO()
|
|
358
|
|
359 application/vnd.sun.xml.calc:sxc:OpenOffice Calc 6.0 spreadsheets
|
|
360 application/so7_vnd.sun.xml.calc:sxc:OpenOffice Calc 7.0 spreadsheets
|
|
361 application/vnd.sun.xml.calc.template:stc:OpenOffice Calc 6.0 templates
|
|
362 application/vnd.stardivision.calc:sdc:StarCalc 5.x spreadsheets
|
|
363 application/x-starcalc:sdc:StarCalc 4.x spreadsheets
|
|
364 application/vnd.lotus-1-2-3: 123, wk1: Lotus 1-2-3 Document
|
|
365 OO()
|
|
366
|
|
367 application/vnd.sun.xml.draw:sxd:OpenOffice Draw 6.0 documents
|
|
368 application/so7_vnd.sun.xml.draw:sxc:StarOffice Draw 7.0 documents
|
|
369 application/vnd.sun.xml.draw.template:std:OpenOffice Draw 6.0 templates
|
|
370 application/vnd.stardivision.draw:sda:StarDraw 5.x documents
|
|
371 application/x-stardraw:sda:StarDraw 4.x documents
|
|
372 OO()
|
|
373
|
|
374 application/vnd.sun.xml.impress:sxi:OpenOffice Impress 6.0 presentations
|
|
375 application/so7_vnd.sun.xml.impress:sxi:StarOffice 7.0 Impress presentations
|
|
376 application/vnd.sun.xml.impress.template:sti:OpenOffice Impress 6.0 templates
|
|
377 application/vnd.stardivision.impress:sdd:StarImpress 5.x presentations
|
|
378 application/vnd.stardivision.impress-packed:sdp:StarImpress Packed 5.x files
|
|
379 application/x-starimpress:sdd:StarImpress 4.x presentations
|
|
380 application/vnd.ms-powerpoint:ppt:PowerPoint Slideshow
|
|
381 application/mspowerpoint:ppt,ppz,pps,pot:PowerPoint Slideshow
|
|
382 OO()
|
|
383
|
|
384 application/vnd.sun.xml.math:sxm:OpenOffice Math 6.0 documents
|
|
385 application/so7_vnd.sun.xml.math:sxm:StarOffice 7.0 Math documents
|
|
386 application/vnd.stardivision.math:smf:StarMath 5.x documents
|
|
387 application/x-starmath:smf:StarMath 4.x documents
|
|
388 OO()
|
|
389
|
|
390 application/vnd.oasis.opendocument.text:odt,ODT:OASIS OpenDocument Text
|
|
391 OO()
|
|
392
|
|
393 application/vnd.oasis.opendocument.spreadsheet:ods,ODS:OASIS OpenDocument SpreadSheet
|
|
394 OO()
|
|
395
|
|
396 application/vnd.oasis.opendocument.presentation:odp,ODP:OASIS OpenDocument Presentation
|
|
397 OO()
|
|
398
|
|
399 chemical/x-pdb:pdb: Protein Data Bank file
|
|
400 model/x-pdb:pdb: Protein Data Bank file
|
|
401 swallow(rasmol) fill: rasmol "$file"
|
|
402 swallow(molecule) fill: /usr/X11R6/lib/xscreensaver/molecule -delay 20000 -geometry +9000+9000 -no-spin -molecule "$file"
|
|
403
|
|
404 application/x-mbsvg:mbsvg: MadButterfly SVG
|
|
405 swallow(Inkscape) : /usr/bin/helper_mb.py "$file"
|
|
406 application/x-c:c: MadButterfly SVG c program
|
|
407 swallow(gedit) : gedit "$file"
|
380
|
408 application/x-h:h: MadButterfly SVG h program
|
|
409 swallow(gedit) : gedit "$file"
|