From 2e9445458dc40f2b0e302d3d7e8db295ae7b7505 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Wed, 12 Nov 2014 15:17:15 +0300 Subject: [PATCH] .mailcap: view OpenDocument files with odt2txt, edit with libreoffice --- .mailcap | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.mailcap b/.mailcap index a3e553f..462200b 100644 --- a/.mailcap +++ b/.mailcap @@ -15,6 +15,9 @@ application/postscript; xpdf %s; description="Postscript files"; test=test -n "$ application/postscript; gv %s; description="Postscript files"; test=test -n "$DISPLAY" -a -n "`which gv 2>/dev/null`" application/postscript; ghostview %s; description="Postscript files"; test=test -n "$DISPLAY" -a -n "`which ghostview 2>/dev/null`" application/postscript; pstotext %s; copiousoutput; description="PostScript files"; test=test -n "`which pstotext 2>/dev/null`" +application/vnd.oasis.opendocument.text; odt2txt %s | less; edit=libreoffice %s; needsterminal; description="OpenDocument files"; test=test -n "`which odt2txt 2>/dev/null`" -a -n "`which less 2>/dev/null`" +application/vnd.oasis.opendocument.text; odt2txt %s | more; edit=libreoffice %s; needsterminal; description="OpenDocument files"; test=test -n "`which odt2txt 2>/dev/null`" +application/vnd.oasis.opendocument.text; odt2txt %s; copiousoutput; description="OpenDocument files"; test=test -n "`which odt2txt 2>/dev/null`" application/x-bittorrent; bittorrent.py %s; test=test -n "$DISPLAY" -a -n "`which bittorrent.py 2>/dev/null`" application/x-chm; fbreader %s; description="Compiled HTML files"; test=test -n "$DISPLAY" -a -n "`which fbreader 2>/dev/null`" application/x-dvi; xdvi %s; description="DVI files"; test=test -n "$DISPLAY" -a -n "`which xdvi 2>/dev/null`" -- 2.39.2