Re: Re: default image viewer in midnight commander-SOLVED

2016-10-07 Thread sp113...@telfort.nl

>On 07/10/16 02:58 PM, sp113...@telfort.nl wrote:
 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
>>>
>>>
>>
>> I now have in  /etc/mc/mc.ext:
>>
>> shell/.jpg
>> Open=feh %f
>> View=feh %f ALL_FORMATS
>>
>> and images open with ristretto image viewer. Not exactly what I expected 
>> open with image viewer feh), but it will do for the moment.
>>
>> Thanks!
>>
>> John Smith
>>
>
>My MC opens images in FEH all the time. I set it up this way:
>
>In ~/.config/mc/mc.ext
>
>### Images ###
>
>type/^GIF
>   Include=image
>
>type/^JPEG
>   View=%view{ascii} /usr/lib/mc/ext.d/image.sh view jpeg
>   Include=image
>
>type/^PC\ bitmap
>   Include=image
>
>type/^PNG
>   Include=image
>
>type/^JNG
>   Include=image
>
>type/^MNG
>   Include=image
>
>type/^TIFF
>   Include=image
>
>type/^PBM
>   Include=image
>
>type/^PGM
>   Include=image
>
>type/^PPM
>   Include=image
>
>type/^Netpbm
>   Include=image
>
>shell/.xcf
>   Open=/usr/lib/mc/ext.d/image.sh open xcf
>
>shell/.xbm
>   Open=/usr/lib/mc/ext.d/image.sh open xbm
>
>shell/.xpm
>   Include=image
>   View=/usr/lib/mc/ext.d/image.sh view xpm %f
>
>shell/.ico
>   Include=image
>
>shell/i/.svg
>   View=%view{ascii} /usr/lib/mc/ext.d/image.sh view svg
>   Open=/usr/lib/mc/ext.d/image.sh open svg
>
>include/image
>   Open=feh %f
>   View=%view{ascii} /usr/lib/mc/ext.d/image.sh view ALL_FORMATS
>
>
>Hope it helps.
>
>

Thanks!
This did the trick!

John Smith



Re: default image viewer in midnight commander

2016-10-07 Thread Hans
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




Re: default image viewer in midnight commander

2016-10-07 Thread David Wright
On Fri 07 Oct 2016 at 14:36:45 (-0400), Celejar wrote:
> On Fri, 7 Oct 2016 19:53:05 +0200 (CEST)
> "sp113...@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.



Re: default image viewer in midnight commander

2016-10-07 Thread Frank McCormick

On 07/10/16 02:58 PM, sp113...@telfort.nl wrote:

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




I now have in  /etc/mc/mc.ext:

shell/.jpg
Open=feh %f
View=feh %f ALL_FORMATS

and images open with ristretto image viewer. Not exactly what I expected open 
with image viewer feh), but it will do for the moment.

Thanks!

John Smith



My MC opens images in FEH all the time. I set it up this way:

In ~/.config/mc/mc.ext

### Images ###

type/^GIF
Include=image

type/^JPEG
View=%view{ascii} /usr/lib/mc/ext.d/image.sh view jpeg
Include=image

type/^PC\ bitmap
Include=image

type/^PNG
Include=image

type/^JNG
Include=image

type/^MNG
Include=image

type/^TIFF
Include=image

type/^PBM
Include=image

type/^PGM
Include=image

type/^PPM
Include=image

type/^Netpbm
Include=image

shell/.xcf
Open=/usr/lib/mc/ext.d/image.sh open xcf

shell/.xbm
Open=/usr/lib/mc/ext.d/image.sh open xbm

shell/.xpm
Include=image
View=/usr/lib/mc/ext.d/image.sh view xpm %f

shell/.ico
Include=image

shell/i/.svg
View=%view{ascii} /usr/lib/mc/ext.d/image.sh view svg
Open=/usr/lib/mc/ext.d/image.sh open svg

include/image
Open=feh %f
View=%view{ascii} /usr/lib/mc/ext.d/image.sh view ALL_FORMATS


Hope it helps.



Re: Re: default image viewer in midnight commander

2016-10-07 Thread sp113...@telfort.nl
>> 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
>
>

I now have in  /etc/mc/mc.ext:

shell/.jpg
Open=feh %f
View=feh %f ALL_FORMATS

and images open with ristretto image viewer. Not exactly what I expected open 
with image viewer feh), but it will do for the moment.

Thanks!

John Smith



Re: default image viewer in midnight commander

2016-10-07 Thread Celejar
On Fri, 7 Oct 2016 19:53:05 +0200 (CEST)
"sp113...@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



Re: default image viewer in midnight commander

2016-10-07 Thread Joe
On Fri, 7 Oct 2016 19:53:05 +0200 (CEST)
"sp113...@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



Re: Re: default image viewer in midnight commander

2016-10-07 Thread sp113...@telfort.nl
>> 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



Re: default image viewer in midnight commander

2016-10-07 Thread Joe
On Fri, 7 Oct 2016 14:20:58 +0200 (CEST)
"sp113...@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



default image viewer in midnight commander

2016-10-07 Thread sp113...@telfort.nl
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!