Re: In Midnight Commander I can press enter on a jpg or gif and they open with Mirage, but webp pictures don't do anything when I press enter

Guy Stalnaker via mc <[email protected]> Sun, 8 Oct 2023 12:44:41 -0500
Newsgroups gmane.comp.gnome.apps.mc.general
Message-ID <[email protected]>
P.S. Should have done this before I sent the earlier email. I confirm 
that my version of MC did NOT successfully open .webp files. I edited 
the Extension File and added (by copying and modifying an existing 
section) thus:

### Images ###

[webp]
Shell=.webp
Open=/usr/lib/mc/ext.d/image.sh open webp

After saving and closing the file, MC successfully opens a .webp file 
when before the edit it did not.

Regards.

On 10/8/23 12:25, Guy Stalnaker wrote:
> From the MC Command menu, select Edit Extensions File (F9 > Command > 
> Edit Extensions File). This file tells MC how to open files based on 
> the file's .XXXX extension. It should be fairly self-explanatory 
> (there is information at the top of the file with more information). 
> One can specify in this file a particular application to use with a 
> particular file extension, or one can tell MC (towards the bottom of 
> the file) to use a helper script /usr/lib/mc/ext.d/image.sh (this 
> helper script has sections for opening an image, or viewing an image).
>
> Interestingly, I see in the extensions file WEBM is specified for my 
> version of MC, but WEBP is not.
>
> Regards.
>
> On 10/8/23 05:19, Bob Currey via mc wrote:
>> I'm not sure why mc is able to open the jpg, gif, or movie files, but 
>> I like that feature and wish I could get the webp pictures and 
>> animation files to open with Mirage also.
>>
>> I installed:
>> |sudo apt install webp-pixbuf-loader webp|
>>
>> and this made it so Mirage can open them automatically if I press 
>> enter on any of the images in SpaceFM or zzzfm file managers, but not 
>> with mc.
>>
>> Any ideas how to get them to open like jpg files do?
>>
>> BTW, Thanks very much to the Developers of this GREAT program.  I use 
>> it every day.
>>
>> PS: I am running antiX 22
>>
>> $ mc -V
>> GNU Midnight Commander 4.8.29
>> Built with GLib 2.74.5
>> Built with S-Lang 2.3.3 with terminfo database
>> Built with libssh2 1.10.0
>> With builtin Editor and Aspell support
>> With subshell support as default
>> With support for background operations
>> With mouse support on xterm and Linux console
>> With support for X11 events
>> With internationalization support
>> With multiple codepages support
>> With ext2fs attributes support
>> Virtual File Systems:
>>  cpiofs, tarfs, sfs, extfs, ext2undelfs, ftpfs, sftpfs, fish
>> Data types:
>>  char: 8; int: 32; long: 64; void *: 64; size_t: 64; off_t: 64;
>>
>>
>
> -- 
> --
>
> “Happiness is the meaning and the purpose of life, the whole aim and end of human existence.”
>
> ― Aristotle

-- 
--

“Happiness is the meaning and the purpose of life, the whole aim and end of human existence.”

― Aristotle

-- 
mc mailing list
[email protected]
https://lists.midnight-commander.org/mailman/listinfo/mc