summaryrefslogtreecommitdiffstats
path: root/debian/patches/ext_run-mailcap.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/ext_run-mailcap.patch')
-rw-r--r--debian/patches/ext_run-mailcap.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/debian/patches/ext_run-mailcap.patch b/debian/patches/ext_run-mailcap.patch
new file mode 100644
index 0000000..3cd4963
--- /dev/null
+++ b/debian/patches/ext_run-mailcap.patch
@@ -0,0 +1,23 @@
+Last-Update: 2013-09-08
+Forwarded: no
+Author: Dmitry Smirnov <onlyjob@member.fsf.org>
+Bug-Debian: http://bugs.debian.org/665763
+Bug-Debian: http://bugs.debian.org/544058
+Description: Use mailcap viewer instead of various hardcoded viewers
+ * dvi viewer (do_open_action)
+ * images viewer
+ * .ram|.rm files viewer
+
+--- a/misc/ext.d/doc.sh.in
++++ b/misc/ext.d/doc.sh.in
+@@ -184,9 +184,9 @@
+ fmclient -f "${MC_EXT_FILENAME}"
+ ;;
+ dvi)
+ if [ -n "$DISPLAY" ]; then
+- (xdvi "${MC_EXT_FILENAME}" &)
++ (run-mailcap "${MC_EXT_FILENAME}" &)
+ else
+ dvisvga "${MC_EXT_FILENAME}" || \
+ dvi2tty "${MC_EXT_FILENAME}" | ${PAGER:-more}
+ fi