1 image/*; /usr/bin/eog %s; test=[ -n "$DISPLAY" -a -x /usr/bin/eog ]
2 image/*; /usr/bin/qiv -Rl %s; test=[ -n "$DISPLAY" ]
3 image/*; /usr/bin/asciiview %s; test=[ -z "$DISPLAY" ]; needsterminal
4 image/*; /usr/bin/cacaview %s; test=[ -z "$DISPLAY" ]; needsterminal
5 image/*; /usr/bin/identify -verbose %s; copiousoutput; test=[ -z "$LYNX_VERSION" ]
7 audio/mpeg; /usr/bin/id3v2 -l %s; copiousoutput; test=[ -z "$LYNX_VERSION" ]
9 audio/mod; /usr/bin/mikmod %s
11 # play is apparently a security hole
12 #audio/*; /usr/bin/play %s
13 audio/*; /usr/bin/mplayer -vc null -vo null %s; test=[ -z "$DISPLAY" ]
14 audio/*; /usr/bin/xterm -name mplayer -e /usr/bin/mplayer -vc null -vo null %s & /bin/sleep 1; test=[ -n "$DISPLAY" ]
16 video/*; /usr/bin/mplayer -vc null -vo null %s; test=[ -z "$DISPLAY" ]
17 video/*; /usr/bin/xterm -name mplayer -e /usr/bin/mplayer %s & /bin/sleep 1; test=[ -n "$DISPLAY" ]
19 video/mpeg; /usr/bin/mplayer -vc null -vo null %s; test=[ -z "$DISPLAY" ]
20 video/mpeg; /usr/bin/xterm -name mplayer -e /usr/bin/mplayer %s & /bin/sleep 1; test=[ -n "$DISPLAY" ]
22 application/pdf; /usr/bin/xpdf %s; test=[ -n "$DISPLAY" ]
23 application/pdf; /usr/bin/pdftotext -layout -nopgbrk %s -; copiousoutput; test=[ -z "$LYNX_VERSION" ]
25 application/postscript; /usr/bin/gv -safer %s; test=[ -n "$DISPLAY" ]
26 application/postscript; /usr/bin/ps2ascii %s; copiousoutput; test=[ -z "$LYNX_VERSION" ]
28 application/x-dvi; /usr/bin/xdvi %s; test=[ -n "$DISPLAY" ]
29 application/x-dvi; /usr/bin/dvi2tty -w123 %s; copiousoutput; test=[ -z "$LYNX_VERSION" ]
31 text/html; /usr/bin/htmlview %s; copiousoutput; test=[ -x /usr/bin/htmlview ]
32 text/html; /usr/bin/elinks %s; nametemplate=%s.html; test=[ -z "$DISPLAY" ]
33 text/html; /usr/bin/xterm -name xterm-elinks -e /usr/bin/elinks %s & /bin/sleep 1; nametemplate=%s.html; test=[ -n "$DISPLAY" ]
34 text/html; /usr/bin/elinks -dump -eval 'set document.codepage.assume = "%{charset}"' %s; copiousoutput
36 #text/x-patch; /usr/bin/colordiff.pl < %s | less -r
38 application/x-shockwave-flash; /usr/bin/swfplayer %s & sleep 2; test=[ -n "$DISPLAY" ]
40 application/rtf; /usr/bin/unrtf --nopict --text --quiet %s; copiousoutput; test=[ -z "$LYNX_VERSION" ]
42 application/vnd.oasis.opendocument.presentation;odt2txt %s; copiousoutput; test=[ -z "$LYNX_VERSION" -a -z "$DISPLAY" ]
43 application/vnd.oasis.opendocument.spreadsheet; odt2txt %s; copiousoutput; test=[ -z "$LYNX_VERSION" -a -z "$DISPLAY" ]
44 application/vnd.oasis.opendocument.text; odt2txt %s; copiousoutput; test=[ -z "$LYNX_VERSION" -a -z "$DISPLAY" ]
46 application/vnd.sun.xml.writer; tmp=`/bin/mktemp -d %s.XXXXXX`\; \
47 cd "$tmp"\; /usr/bin/soffice2html.pl %s\; \
48 /usr/bin/elinks content.html\; \
49 /bin/rm -rf "$tmp"; test=[ -z "$DISPLAY" ]
51 application/vnd.sun.xml.writer; /usr/bin/oowriter %s; test=[ -n "$DISPLAY" -a -x /usr/bin/oowriter ]
53 application/vnd.sun.xml.writer; tmp=`/bin/mktemp -d %s.XXXXXX`\; \
54 cd "$tmp"\; /usr/bin/soffice2html.pl %s\; \
55 { /usr/bin/xterm -name xterm-elinks -e /usr/bin/elinks content.html\; \
56 /bin/rm -rf "$tmp"\;} &; test=[ -n "$DISPLAY" ]
58 application/vnd.sun.xml.writer; tmp=`/bin/mktemp -d %s.XXXXXX`\; \
59 cd "$tmp"\; /usr/bin/soffice2html.pl %s\; \
60 /usr/bin/elinks -dump content.html\; \
61 /bin/rm -rf "$tmp"; copiousoutput; test=[ -z "$LYNX_VERSION" ]
63 application/msword; tmp=`/bin/mktemp -d %s.XXXXXX`\; \
64 /usr/bin/wvHtml %s --targetdir="$tmp" page.html -1\; \
65 /usr/bin/elinks "$tmp/page.html"\; \
66 /bin/rm -rf "$tmp"; test=[ -z "$DISPLAY" ]
68 application/msword; /usr/bin/oowriter %s; test=[ -n "$DISPLAY" -a -x /usr/bin/oowriter ]
70 application/msword; tmp=`/bin/mktemp -d %s.XXXXXX`\; \
71 /usr/bin/wvHtml %s --targetdir="$tmp" page.html\; \
72 { /usr/bin/xterm -name xterm-elinks -e /usr/bin/elinks "$tmp/page.html"\; \
73 /bin/rm -rf "$tmp"\;} &; test=[ -n "$DISPLAY" ]
75 application/msword; tmp=`/bin/mktemp -d %s.XXXXXX`\; \
76 /usr/bin/wvHtml %s --targetdir="$tmp" page.html -1\; \
77 /usr/bin/elinks -dump "$tmp/page.html"\; \
78 /bin/rm -rf "$tmp"; copiousoutput; test=[ -z "$LYNX_VERSION" ]
80 application/vnd.ms-excel; tmp=`/bin/mktemp -d %s.XXXXXX`\; \
81 /usr/bin/xlhtml -a %s > "$tmp/page.html"\; \
82 /usr/bin/elinks "$tmp/page.html"\; \
83 /bin/rm -rf "$tmp"; test=[ -z "$DISPLAY" ]
85 application/vnd.ms-excel; /usr/bin/oocalc %s; test=[ -n "$DISPLAY" -a -x /usr/bin/oocalc ]
87 application/vnd.ms-excel; tmp=`/bin/mktemp -d %s.XXXXXX`\; \
88 /usr/bin/xlhtml -a %s > "$tmp/page.html"\; \
89 { /usr/bin/xterm -name xterm-elinks -e /usr/bin/elinks "$tmp/page.html"\; \
90 /bin/rm -rf "$tmp"\;} &; test=[ -n "$DISPLAY" ]
92 application/vnd.ms-excel; tmp=`/bin/mktemp -d %s.XXXXXX`\; \
93 /usr/bin/xlhtml -a %s > "$tmp/page.html"\; \
94 /usr/bin/elinks -dump "$tmp/page.html"\; \
95 /bin/rm -rf "$tmp"; copiousoutput; test=[ -z "$LYNX_VERSION" ]
97 application/vnd.ms-powerpoint; tmp=`/bin/mktemp -d %s.XXXXXX`\; \
98 /usr/bin/ppthtml %s > "$tmp/page.html"\; \
99 /usr/bin/elinks "$tmp/page.html"\; \
100 /bin/rm -rf "$tmp"; test=[ -z "$DISPLAY" ]
102 application/vnd.ms-powerpoint; /usr/bin/ooimpress %s; test=[ -n "$DISPLAY" -a -x /usr/bin/ooimpress ]
104 application/vnd.ms-powerpoint; tmp=`/bin/mktemp -d %s.XXXXXX`\; \
105 /usr/bin/ppthtml %s > "$tmp/page.html"\; \
106 { /usr/bin/xterm -name xterm-elinks -e /usr/bin/elinks "$tmp/page.html"\; \
107 /bin/rm -rf "$tmp"\;} &; test=[ -n "$DISPLAY" ]
109 application/vnd.ms-powerpoint; tmp=`/bin/mktemp %s.XXXXXX`\; \
110 /usr/bin/ppthtml %s > "$tmp"\; \
111 /usr/bin/elinks -dump "$tmp"\; \
112 /bin/rm -f "$tmp"; copiousoutput; test=[ -z "$LYNX_VERSION" ]
114 application/x-bzip-compressed-tar; /bin/tar jtvvf %s; copiousoutput; test=[ -z "$LYNX_VERSION" ]
115 application/x-tar; /bin/tar tvvf %s; copiousoutput; test=[ -z "$LYNX_VERSION" ]
116 application/x-tgz; /bin/tar ztvvf %s; copiousoutput; test=[ -z "$LYNX_VERSION" ]
117 application/x-rar-compressed; /usr/bin/unrar v -c- %s; copiousoutput; test=[ -z "$LYNX_VERSION" ]
118 application/x-zip-compressed; /usr/bin/unzip -v %s; copiousoutput; test=[ -z "$LYNX_VERSION" ]
119 application/zip; /usr/bin/unzip -v %s; copiousoutput; test=[ -z "$LYNX_VERSION" ]
120 application/x-rpm; /bin/rpm -qpilv %s; copiousoutput; test=[ -z "$LYNX_VERSION" ]
121 application/ms-tnef; /usr/bin/tnef -vt %s; copiousoutput; test=[ -z "$LYNX_VERSION" ]
122 application/pgp-encrypted; /usr/bin/gpg -vv %s 2>&1; copiousoutput; test=[ -z "$LYNX_VERSION" ]
123 application/pgp-signature; /usr/bin/gpg -vv %s 2>&1; copiousoutput; test=[ -z "$LYNX_VERSION" ]