--- lib/mc.ext.in +++ lib/mc.ext.in @@ -221,7 +221,7 @@ shell/.xpm View=sxpm %f include/image - Open=if [ "$DISPLAY" = "" ]; then zgv %f; else (ee %f &); fi + Open=if [ "$DISPLAY" = "" ]; then asciiview %f; else (xv %f &); fi View=%view{ascii} identify %f #View=%view{ascii} asciiview %f @@ -305,11 +305,11 @@ regex/\.([Hh]tml?|HTML?)$ # StarOffice 5.2 shell/.sdw - Open=(ooffice %f &) + Open=(OOo %f &) # StarOffice 6 and OpenOffice.org formats regex/\.(sxw|stw|sxc|stc|sxi|sti|sxd|std|sxm|sxg)$ - Open=(ooffice %f &) + Open=(OOo %f &) # AbiWord shell/.abw @@ -317,15 +317,15 @@ shell/.abw # Microsoft Word Document type/^Microsoft\ Office\ Document - Open=(abiword %f >/dev/null 2>&1 &) + Open=if which abiword ; then (abiword %f >/dev/null 2>&1 &); else (OOo %f >/dev/null 2>&1 &); fi >/dev/null View=%view{ascii} wvText %f - || strings %f type/^Microsoft\ Word - Open=(abiword %f >/dev/null 2>&1 &) + Open=if which abiword ; then (abiword %f >/dev/null 2>&1 &); else (OOo %f >/dev/null 2>&1 &); fi >/dev/null View=%view{ascii} wvText %f - || strings %f regex/\.([Dd]ot|DOT|[Ww]ri|WRI)$ - Open=(abiword %f >/dev/null 2>&1 &) + Open=if which abiword ; then (abiword %f >/dev/null 2>&1 &); else (OOo %f >/dev/null 2>&1 &); fi >/dev/null View=%view{ascii} wvText %f - || strings %f # RTF document @@ -334,16 +334,12 @@ regex/\.(rtf|RTF|Rtf)$ # Microsoft Excel Worksheet regex/\.([Xx]l[sw]|XL[SW])$ - Open=(gnumeric %f >/dev/null 2>&1 &) + Open=if which gnumeric ; then (gnumeric %f >/dev/null 2>&1 &); else (OOo %f >/dev/null 2>&1 &); fi >/dev/null View=%view{ascii} xls2csv %f || strings %f type/^Microsoft\ Excel - Open=(gnumeric %f >/dev/null 2>&1 &) + Open=if which gnumeric ; then (gnumeric %f >/dev/null 2>&1 &); else (OOo %f >/dev/null 2>&1 &); fi >/dev/null View=%view{ascii} xls2csv %f || strings %f -# Use OpenOffice.org to open any MS Office documents -type/^Microsoft\ Office\ Document - Open=(ooffice %f &) - # Framemaker type/^FrameMaker Open=fmclient -f %f