updated on Sun Jan 15 20:01:04 UTC 2012
[aur-mirror.git] / mc-suse / mc-apps.patch
blob7ededd199eef8345da230f96b4e86af5bf001662
1 --- lib/mc.ext.in
2 +++ lib/mc.ext.in
3 @@ -115,7 +115,7 @@
4 # Open=%cd %p#utar
5 View=%view{ascii} bzip -dc %f 2>/dev/null | tar tvvf -
7 -regex/\.t(ar\.bz2|bz|b2)$
8 +regex/\.t(ar\.bz2|bz|b2|bz2)$
9 Open=%cd %p#utar
10 View=%view{ascii} bzip2 -dc %f 2>/dev/null | tar tvvf -
12 @@ -173,7 +173,7 @@
13 View=%view{ascii} cpio -itv <'%f' 2>/dev/null
15 # ls-lR
16 -regex/(^|\.)ls-?lR(\.g?z|Z|bz2)?$
17 +regex/(^|\.)ls-?lR(\.(bz2|gz|Z))?$
18 Open=%cd %p#lslR
20 # patch
21 @@ -339,7 +339,7 @@
22 View=sxpm %f
24 include/image
25 - Open=if [ "$DISPLAY" = "" ]; then zgv %f; else (gqview %f &); fi
26 + Open=if [ "$DISPLAY" = "" ]; then asciiview %f; else (display %f >/dev/null 2>&1 &); fi
27 View=%view{ascii} identify %f
28 #View=%view{ascii} asciiview %f
30 @@ -357,11 +357,11 @@
31 Open=vplay -s 22 %f
33 regex/\.([mM][pP]3)$
34 - Open=if [ "$DISPLAY" = "" ]; then mpg123 %f; else (xmms %f >/dev/null 2>&1 &); fi
35 + Open=if [ "$DISPLAY" = "" ]; then mpg123 %f; else if [ -z "`which realplay`" ]; then (xmms -e %f 1>/dev/null 2>&1 &); else (realplay %f >/dev/null 2>&1 &); fi; fi
36 View=%view{ascii} mpg123 -vtn1 %f 2>&1 | sed -n '/^Title/,/^Comment/p;/^MPEG/,/^Audio/p'
38 regex/\.([oO][gG][gG])$
39 - Open=if [ "$DISPLAY" = "" ]; then ogg123 %f; else (xmms %f >/dev/null 2>&1 &); fi
40 + Open=if [ "$DISPLAY" = "" ]; then ogg123 %f; else (xmms -e %f >/dev/null 2>&1 &); fi
41 View=%view{ascii} ogginfo %s
43 regex/\.([mM][iI][dD][iI]?|[rR][mM][iI][dD]?)$
44 @@ -417,12 +417,12 @@
46 # Postscript
47 type/^PostScript
48 - Open=(gv %f &)
49 + Open=(gv %f >/dev/null 2>&1 &)
50 View=%view{ascii} ps2ascii %f
52 # PDF
53 type/^PDF
54 - Open=(xpdf %f &)
55 + Open=(xpdf %f >/dev/null 2>&1 &)
56 #Open=(acroread %f &)
57 #Open=(ghostview %f &)
58 View=%view{ascii} pdftotext %f -
59 @@ -437,54 +437,53 @@
61 # StarOffice 5.2
62 shell/.sdw
63 - Open=(ooffice %f &)
64 + Open=(ooffice %f >/dev/null 2>&1 &)
66 # StarOffice 6 and OpenOffice.org formats
67 -regex/\.(odt|ott|sxw|stw|ods|ots|sxc|stc|odp|otp|sxi|sti|odg|otg|sxd|std|odb|odf|sxm|odm|sxg)$
68 - Open=(ooffice %f &)
69 +regex/\.(odb|odc|odf|odg|odi|odm|odp|ods|odt|otg|oth|otp|ots|ott|sda|sdc|sdd|sdp|sds|sdw|sgl|smf|stc|std|sti|stw|sxc|sxd|sxg|sxi|sxm|sxw|vor)$
70 + Open=(ooffice %f >/dev/null 2>&1 &)
71 View=%view{ascii} unzip -p %f content.xml | o3totxt
73 # AbiWord
74 shell/.abw
75 - Open=(abiword %f &)
76 + Open=if which abiword ; then (abiword %f >/dev/null 2>&1 &); else (ooffice %f >/dev/null 2>&1 &); fi >/dev/null
78 # Microsoft Word Document
79 regex/\.([Dd][oO][cCtT]|[Ww][rR][iI])$
80 - Open=(abiword %f >/dev/null 2>&1 &)
81 + Open=if which abiword ; then (abiword %f >/dev/null 2>&1 &); else (ooffice %f >/dev/null 2>&1 &); fi >/dev/null
82 View=%view{ascii} catdoc -w %f || word2x -f text %f - || strings %f
83 type/^Microsoft\ Word
84 - Open=(abiword %f >/dev/null 2>&1 &)
85 + Open=if which abiword ; then (abiword %f >/dev/null 2>&1 &); else (ooffice %f >/dev/null 2>&1 &); fi >/dev/null
86 View=%view{ascii} catdoc -w %f || word2x -f text %f - || strings %f
88 # RTF document
89 regex/\.([rR][tT][fF])$
90 - Open=(abiword %f >/dev/null 2>&1 &)
91 + Open=if which abiword ; then (abiword %f >/dev/null 2>&1 &); else (ooffice %f >/dev/null 2>&1 &); fi >/dev/null
93 # Microsoft Excel Worksheet
94 regex/\.([xX][lL][sSwW])$
95 - Open=(gnumeric %f >/dev/null 2>&1 &)
96 + Open=if which gnumeric ; then (gnumeric %f >/dev/null 2>&1 &); else (ooffice %f >/dev/null 2>&1 &); fi >/dev/null
97 View=%view{ascii} xls2csv %f || strings %f
98 type/^Microsoft\ Excel
99 - Open=(gnumeric %f >/dev/null 2>&1 &)
100 + Open=if which gnumeric ; then (gnumeric %f >/dev/null 2>&1 &); else (ooffice %f >/dev/null 2>&1 &); fi >/dev/null
101 View=%view{ascii} xls2csv %f || strings %f
103 -# Use OpenOffice.org to open any MS Office documents
104 -type/^Microsoft\ Office\ Document
105 - Open=(ooffice %f &)
107 # Framemaker
108 type/^FrameMaker
109 Open=fmclient -f %f
111 # DVI
112 regex/\.([dD][vV][iI])$
113 - Open=if [ x$DISPLAY = x ]; then dvisvga %f; else (xdvi %f &); fi
114 + Open=if [ x$DISPLAY = x ]; then dvisvga %f; else (xdvi %f >/dev/null 2>&1 &); fi
115 View=%view{ascii} dvi2tty %f
117 # TeX
118 regex/\.([Tt][Ee][Xx])$
119 Open=%var{EDITOR:vi} %f
121 +# DJVU
122 +regex/\.(djvu|DJVU)$
123 + Open=djview %f >/dev/null 2>&1 &
125 ### Miscellaneous ###