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


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

Re: default image viewer in midnight commander

Started byFrank McCormick <debianlist@videotron.ca>
First post2016-10-07 21:40 +0200
Last post2016-10-07 23:20 +0200
Articles 2 — 2 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 Frank McCormick <debianlist@videotron.ca> - 2016-10-07 21:40 +0200
    Re: Re: default image viewer in midnight commander-SOLVED "sp113438@telfort.nl" <sp113438@telfort.nl> - 2016-10-07 23:20 +0200

#173287 — Re: default image viewer in midnight commander

FromFrank McCormick <debianlist@videotron.ca>
Date2016-10-07 21:40 +0200
SubjectRe: default image viewer in midnight commander
Message-ID<spJ9T-4Zd-15@gated-at.bofh.it>
On 07/10/16 02:58 PM, sp113438@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.

[toc] | [next] | [standalone]


#173294 — Re: Re: default image viewer in midnight commander-SOLVED

From"sp113438@telfort.nl" <sp113438@telfort.nl>
Date2016-10-07 23:20 +0200
SubjectRe: Re: default image viewer in midnight commander-SOLVED
Message-ID<spKIG-69y-13@gated-at.bofh.it>
In reply to#173287
>On 07/10/16 02:58 PM, sp113438@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

[toc] | [prev] | [standalone]


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


csiph-web