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


Groups > linux.debian.user > #173277 > unrolled thread

Re: default image viewer in midnight commander

Started byJoe <joe@jretrading.com>
First post2016-10-07 19:50 +0200
Last post2016-10-07 22:20 +0200
Articles 6 — 5 participants

Back to article view | Back to linux.debian.user

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  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

#173277 — Re: default image viewer in midnight commander

FromJoe <joe@jretrading.com>
Date2016-10-07 19:50 +0200
SubjectRe: default image viewer in midnight commander
Message-ID<spHrr-3M0-5@gated-at.bofh.it>
On Fri, 7 Oct 2016 14:20:58 +0200 (CEST)
"sp113438@telfort.nl" <sp113438@telfort.nl> wrote:

> Hello,
> I have difficulties with mc's default image viewer.
> I want to use feh, but default is gimp, firefox or wine internet
> explorer. Wine is not even installed!
> I can not find where to change the default.
> I have mc directories in:
> ~/.local/share/mc
> ~/.config/mc
> /etc/mc/
> usr/lib/mc/
> /usr/share/mc/
> Please help me solve the issue.
> Thanks!

Try /etc/mc/mc.ext which calls /usr/lib/mc/ext.d/image.sh

-- 
Joe

[toc] | [next] | [standalone]


#173279

From"sp113438@telfort.nl" <sp113438@telfort.nl>
Date2016-10-07 20:00 +0200
Message-ID<spHB7-3PS-1@gated-at.bofh.it>
In reply to#173277
>> Hello,
>> I have difficulties with mc's default image viewer.
>> I want to use feh, but default is gimp, firefox or wine internet
>> explorer. Wine is not even installed!
>> I can not find where to change the default.
>> I have mc directories in:
>> ~/.local/share/mc
>> ~/.config/mc
>> /etc/mc/
>> usr/lib/mc/
>> /usr/share/mc/
>> Please help me solve the issue.
>> Thanks!
>
>Try /etc/mc/mc.ext which calls /usr/lib/mc/ext.d/image.sh
>
>-- 
>Joe
>
>
I have in /etc/mc/mc.ext:

include/image
        Open=feh %f
        View=feh %f ALL_FORMATS

but that does not help

[toc] | [prev] | [next] | [standalone]


#173281

FromJoe <joe@jretrading.com>
Date2016-10-07 20:20 +0200
Message-ID<spHUu-4gr-17@gated-at.bofh.it>
In reply to#173279
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.
> >> I want to use feh, but default is gimp, firefox or wine internet
> >> explorer. Wine is not even installed!
> >> I can not find where to change the default.
> >> I have mc directories in:
> >> ~/.local/share/mc
> >> ~/.config/mc
> >> /etc/mc/
> >> usr/lib/mc/
> >> /usr/share/mc/
> >> Please help me solve the issue.
> >> Thanks!  
> >
> >Try /etc/mc/mc.ext which calls /usr/lib/mc/ext.d/image.sh
> >
> >-- 
> >Joe
> >
> >  
> I have in /etc/mc/mc.ext:
> 
> include/image
>         Open=feh %f
>         View=feh %f ALL_FORMATS
> 
> but that does not help
> 

Sorry, I can't help any further, mc doesn't open images at all for me,
and I've never worried about fixing it. I use it for admin work only.

-- 
Joe

[toc] | [prev] | [next] | [standalone]


#173284

FromCelejar <celejar@gmail.com>
Date2016-10-07 20:40 +0200
Message-ID<spIdP-4nx-7@gated-at.bofh.it>
In reply to#173279
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 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.

Celejar

[toc] | [prev] | [next] | [standalone]


#173290

FromDavid Wright <deblis@lionunicorn.co.uk>
Date2016-10-07 22:10 +0200
Message-ID<spJCX-5r1-29@gated-at.bofh.it>
In reply to#173284
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.

[toc] | [prev] | [next] | [standalone]


#173291

FromHans <hans.ullrich@loop.de>
Date2016-10-07 22:20 +0200
Message-ID<spJMC-5yb-23@gated-at.bofh.it>
In reply to#173290
I suppose, there is a menu in mc itself, where you can edit all the 
connections to a programm according to its ending.

Look at "Command", then "Edit extension file" (if you use English version). If  
you do not find it, cause your Debian is in another language, start mc by using 
LANG=C mc.

Good luck!

Hans

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web