summaryrefslogtreecommitdiffstats
path: root/debian/patches/ext_run-mailcap.patch
blob: 3cd4963184c94b12738f955ceb74306d1f38c065 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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