File: ext_run-mailcap.patch

package info (click to toggle)
mc 3%3A4.8.33-1%2Bdeb13u1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 23,536 kB
  • sloc: ansic: 100,652; sh: 8,463; perl: 2,339; makefile: 1,501; cs: 44; lisp: 44; sed: 16
file content (23 lines) | stat: -rw-r--r-- 716 bytes parent folder | download | duplicates (5)
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