]>
Commit | Line | Data |
---|---|---|
58b9ccb5 | 1 | image/*; /usr/bin/eog %s; test=[ -n "$DISPLAY" -a -x /usr/bin/eog ] |
c9a1ea66 | 2 | image/*; /usr/bin/qiv %s; test=[ -n "$DISPLAY" ] |
5cbb1063 TP |
3 | |
4 | audio/mod; /usr/bin/mikmod %s | |
c9a1ea66 | 5 | |
5cbb1063 TP |
6 | # play is apparently a security hole |
7 | #audio/*; /usr/bin/play %s | |
c9a1ea66 TP |
8 | audio/*; /usr/bin/mplayer -vc null -vo null %s; test=[ -z "$DISPLAY" ] |
9 | audio/*; /usr/X11R6/bin/xterm -name mplayer -e /usr/bin/mplayer -vc null -vo null %s & /bin/sleep 1; test=[ -n "$DISPLAY" ] | |
10 | ||
11 | video/*; /usr/bin/mplayer -vc null -vo null %s; test=[ -z "$DISPLAY" ] | |
12 | video/*; /usr/X11R6/bin/xterm -name mplayer -e /usr/bin/mplayer %s & /bin/sleep 1; test=[ -n "$DISPLAY" ] | |
13 | ||
14 | video/mpeg; /usr/bin/mplayer -vc null -vo null %s; test=[ -z "$DISPLAY" ] | |
15 | video/mpeg; /usr/X11R6/bin/xterm -name mplayer -e /usr/bin/mplayer %s & /bin/sleep 1; test=[ -n "$DISPLAY" ] | |
16 | ||
17 | application/pdf; /usr/bin/xpdf %s; test=[ -n "$DISPLAY" ] | |
18 | application/pdf; /usr/bin/pdftotext -layout -nopgbrk %s -; copiousoutput | |
19 | ||
20 | application/postscript; /usr/bin/gv -safer %s; test=[ -n "$DISPLAY" ] | |
21 | application/postscript; /usr/bin/ps2ascii %s; copiousoutput | |
22 | ||
23 | text/html; /usr/bin/htmlview %s; copiousoutput; test=[ -x /usr/bin/htmlview ] | |
24 | text/html; /usr/bin/elinks %s; nametemplate=%s.html; test=[ -z "$DISPLAY" ] | |
be909f25 | 25 | text/html; /usr/X11R6/bin/xterm -name xterm-elinks -e /usr/bin/elinks %s & /bin/sleep 1; nametemplate=%s.html; test=[ -n "$DISPLAY" ] |
c9a1ea66 TP |
26 | text/html; /usr/bin/elinks -dump %s; copiousoutput |
27 | ||
28 | #text/x-patch; /usr/bin/colordiff.pl < %s | less -r | |
29 | ||
30 | application/x-shockwave-flash; /usr/bin/swfplayer %s & sleep 2; test=[ -n "$DISPLAY" ] | |
31 | ||
c2140211 TP |
32 | application/vnd.sun.xml.writer; tmp=`/bin/mktemp -d %s.XXXXXX`\; \ |
33 | cd "$tmp"\; /usr/bin/soffice2html.pl %s\; \ | |
34 | /usr/bin/elinks content.html\; \ | |
35 | /bin/rm -rf "$tmp"; test=[ -z "$DISPLAY" ] | |
36 | ||
37 | application/vnd.sun.xml.writer; /usr/bin/oowriter %s; test=[ -n "$DISPLAY" -a -x /usr/bin/oowriter ] | |
38 | ||
39 | application/vnd.sun.xml.writer; tmp=`/bin/mktemp -d %s.XXXXXX`\; \ | |
40 | cd "$tmp"\; /usr/bin/soffice2html.pl %s\; \ | |
41 | { /usr/X11R6/bin/xterm -name xterm-elinks -e /usr/bin/elinks content.html\; \ | |
42 | /bin/rm -rf "$tmp"\;} &; test=[ -n "$DISPLAY" ] | |
43 | ||
44 | application/vnd.sun.xml.writer; tmp=`/bin/mktemp -d %s.XXXXXX`\; \ | |
45 | cd "$tmp"\; /usr/bin/soffice2html.pl %s\; \ | |
46 | /usr/bin/elinks -dump content.html\; \ | |
47 | /bin/rm -rf "$tmp"; copiousoutput | |
48 | ||
c9a1ea66 TP |
49 | application/msword; tmp=`/bin/mktemp -d %s.XXXXXX`\; \ |
50 | /usr/bin/wvHtml %s --targetdir="$tmp" page.html -1\; \ | |
51 | /usr/bin/elinks "$tmp/page.html"\; \ | |
52 | /bin/rm -rf "$tmp"; test=[ -z "$DISPLAY" ] | |
53 | ||
54 | application/msword; /usr/bin/oowriter %s; test=[ -n "$DISPLAY" -a -x /usr/bin/oowriter ] | |
55 | ||
56 | application/msword; tmp=`/bin/mktemp -d %s.XXXXXX`\; \ | |
57 | /usr/bin/wvHtml %s --targetdir="$tmp" page.html\; \ | |
be909f25 | 58 | { /usr/X11R6/bin/xterm -name xterm-elinks -e /usr/bin/elinks "$tmp/page.html"\; \ |
c9a1ea66 TP |
59 | /bin/rm -rf "$tmp"\;} &; test=[ -n "$DISPLAY" ] |
60 | ||
61 | application/msword; tmp=`/bin/mktemp -d %s.XXXXXX`\; \ | |
62 | /usr/bin/wvHtml %s --targetdir="$tmp" page.html -1\; \ | |
63 | /usr/bin/elinks -dump "$tmp/page.html"\; \ | |
64 | /bin/rm -rf "$tmp"; copiousoutput | |
65 | ||
66 | application/vnd.ms-excel; tmp=`/bin/mktemp -d %s.XXXXXX`\; \ | |
67 | /usr/bin/xlhtml -a %s > "$tmp/page.html"\; \ | |
68 | /usr/bin/elinks "$tmp/page.html"\; \ | |
69 | /bin/rm -rf "$tmp"; test=[ -z "$DISPLAY" ] | |
70 | ||
5a6a56ff TP |
71 | application/vnd.ms-excel; /usr/bin/oocalc %s; test=[ -n "$DISPLAY" -a -x /usr/bin/oocalc ] |
72 | ||
c9a1ea66 TP |
73 | application/vnd.ms-excel; tmp=`/bin/mktemp -d %s.XXXXXX`\; \ |
74 | /usr/bin/xlhtml -a %s > "$tmp/page.html"\; \ | |
be909f25 | 75 | { /usr/X11R6/bin/xterm -name xterm-elinks -e /usr/bin/elinks "$tmp/page.html"\; \ |
c9a1ea66 TP |
76 | /bin/rm -rf "$tmp"\;} &; test=[ -n "$DISPLAY" ] |
77 | ||
78 | application/vnd.ms-excel; tmp=`/bin/mktemp -d %s.XXXXXX`\; \ | |
79 | /usr/bin/xlhtml -a %s > "$tmp/page.html"\; \ | |
80 | /usr/bin/elinks -dump "$tmp/page.html"\; \ | |
81 | /bin/rm -rf "$tmp"; copiousoutput | |
82 | ||
83 | application/vnd.ms-powerpoint; tmp=`/bin/mktemp -d %s.XXXXXX`\; \ | |
84 | /usr/bin/ppthtml %s > "$tmp/page.html"\; \ | |
85 | /usr/bin/elinks "$tmp/page.html"\; \ | |
86 | /bin/rm -rf "$tmp"; test=[ -z "$DISPLAY" ] | |
5cbb1063 | 87 | |
5a6a56ff TP |
88 | application/vnd.ms-powerpoint; /usr/bin/ooimpress %s; test=[ -n "$DISPLAY" -a -x /usr/bin/ooimpress ] |
89 | ||
c9a1ea66 TP |
90 | application/vnd.ms-powerpoint; tmp=`/bin/mktemp -d %s.XXXXXX`\; \ |
91 | /usr/bin/ppthtml %s > "$tmp/page.html"\; \ | |
be909f25 | 92 | { /usr/X11R6/bin/xterm -name xterm-elinks -e /usr/bin/elinks "$tmp/page.html"\; \ |
c9a1ea66 | 93 | /bin/rm -rf "$tmp"\;} &; test=[ -n "$DISPLAY" ] |
5cbb1063 | 94 | |
c9a1ea66 TP |
95 | application/vnd.ms-powerpoint; tmp=`/bin/mktemp %s.XXXXXX`\; \ |
96 | /usr/bin/ppthtml %s > "$tmp"\; \ | |
97 | /usr/bin/elinks -dump "$tmp"\; \ | |
98 | /bin/rm -f "$tmp"; copiousoutput | |
5cbb1063 | 99 | |
c9a1ea66 | 100 | application/x-rar-compressed; /usr/bin/rar v -c- %s; copiousoutput |
c2140211 | 101 | application/x-zip-compressed; /usr/bin/unzip -v %s; copiousoutput |