Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #173290

Re: default image viewer in midnight commander

From David Wright <deblis@lionunicorn.co.uk>
Newsgroups linux.debian.user
Subject Re: default image viewer in midnight commander
Date 2016-10-07 22:10 +0200
Message-ID <spJCX-5r1-29@gated-at.bofh.it> (permalink)
References <spCBs-ql-7@gated-at.bofh.it> <spHrr-3M0-5@gated-at.bofh.it> <spHB7-3PS-1@gated-at.bofh.it> <spIdP-4nx-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Fri 07 Oct 2016 at 14:36:45 (-0400), Celejar wrote:
> On Fri, 7 Oct 2016 19:53:05 +0200 (CEST)
> "sp113438@telfort.nl" <sp113438@telfort.nl> wrote:
> 
> > >> Hello,
> > >> I have difficulties with mc's default image viewer.
> 
> > >Try /etc/mc/mc.ext which calls /usr/lib/mc/ext.d/image.sh
> 
> Either there, or (my preference) ~/.config/mc/mc.ext

I can't be sure whether the existence of the latter prevents the /etc
file being read, or just overrides it. In any case, the first matching
rule is what is used, so if it's there it needs to be correct.

> > I have in /etc/mc/mc.ext:
> > 
> > include/image
> >         Open=feh %f
> >         View=feh %f ALL_FORMATS
> > 
> > but that does not help
> 
> I'm not sure what your 'include' directive is doing (it's impossible to
> know without seeing the rest of your file). Try replacing that line with a
> simpler 'shell/.jpg' or similar, restart mc, and see if it works.

It looks as if you've just replaced the shell command with feh.
I don't know what feh thinks of ALL_FORMATS, but it needs removing.

Rant: I won't have feh on my system. man feh says
"feh — image viewer and cataloguer" but it will
happily modify your pictures (unless you set
-r--r--r--) without a word, ie it's an EDITOR,
not a viewer.

Cheers,
David.

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Re: default image viewer in midnight commander Joe <joe@jretrading.com> - 2016-10-07 19:50 +0200
  Re: Re: default image viewer in midnight commander "sp113438@telfort.nl" <sp113438@telfort.nl> - 2016-10-07 20:00 +0200
    Re: default image viewer in midnight commander Joe <joe@jretrading.com> - 2016-10-07 20:20 +0200
    Re: default image viewer in midnight commander Celejar <celejar@gmail.com> - 2016-10-07 20:40 +0200
      Re: default image viewer in midnight commander David Wright <deblis@lionunicorn.co.uk> - 2016-10-07 22:10 +0200
        Re: default image viewer in midnight commander Hans <hans.ullrich@loop.de> - 2016-10-07 22:20 +0200

csiph-web