[Pkg-mc-devel] Bug#544058: mc: Relay on mailcap entry when viewing images instead of explicitely calling zgv / gqview

Andreas Tille tillea at rki.de
Fri Aug 28 12:47:16 UTC 2009

Package: mc
Version: 2:4.7.0-pre1-3
Severity: normal
Tags: patch


the config file /etc/mc/mc.ext assumes that zgv or gqview are installed
on the system but these are not mentioned in the control file
information.  I would suggest rather than putting any specific image
viewer into the dependencies to relay on the mailcap entry and use see
in the mc.ext file like:

--- mc.ext.orig 2009-08-09 15:07:00.000000000 +0200
+++ mc.ext      2009-08-28 14:39:17.000000000 +0200
@@ -379,7 +379,7 @@
        View=sxpm %f
-       Open=if [ "$DISPLAY" = "" ]; then zgv %f; else (gqview %f &); fi
+       Open=(see %f &)
        View=%view{ascii} identify %f
        #View=%view{ascii} asciiview %f

This should nicely handle all images in case any image viewer is installed.

As I wrote in my last mail I would strongly recommend to

   Recommends: mime-support

instead of only suggesting this package.

Remark: I would love if some virtual package image-viewer or something like
this would exist, but there is not as far as I know.

Kind regards and thanks for maintaining mc


-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (501, 'testing'), (50, 'unstable'), (5, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-2-686 (SMP w/1 CPU core)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages mc depends on:
ii  libc6                         2.9-23     GNU C Library: Shared libraries
ii  libglib2.0-0                  2.20.4-1   The GLib library of C routines
ii  libgpm2                       1.20.4-3.2 General Purpose Mouse - shared lib
ii  libslang2                     2.1.4-3    The S-Lang programming library - r

Versions of packages mc recommends:
ii  imagemagick                7: image manipulation programs

Versions of packages mc suggests:
pn  arj                         <none>       (no description available)
ii  bzip2                       1.0.5-3      high-quality block-sorting file co
ii  dbview                      1.0.4-1      View dBase III files
ii  file                        5.03-1       Determines file type using "magic"
ii  links                       2.2-1+b1     Web browser running in text mode
ii  lynx                        2.8.7rel.1-1 Text-mode WWW Browser (transitiona
ii  mime-support                3.46-1       MIME files 'mime.types' & 'mailcap
pn  odt2txt                     <none>       (no description available)
ii  perl                        5.10.0-25    Larry Wall's Practical Extraction 
ii  unzip                       6.0-1        De-archiver for .zip files
ii  w3m                         0.5.2-2.1    WWW browsable pager with excellent
pn  xpdf                        <none>       (no description available)
ii  zip                         3.0-1        Archiver for .zip files

-- no debconf information

More information about the Pkg-mc-devel mailing list