You are not logged in.
i want to open jpg files with gpicview isntead of feh in midnight commander, i read that i have to edit the file: /etc/mc/mc.ext
in the part that say type/^JPEG
i wrote
#Include=image-options
Open=gpicview %f
i restart mc but nothing happen it still open the jpg files with feh, what im doing wrong?
cheers
Offline
try this
type/^JPEG
Include=its
include/its
Open=/usr/bin/gpicview %f
View=/usr/bin/gpicview %fmake its anything you want
Offline
i tried what you told me but it didnt work, i edited the mimeapps file at HOME/.local/share/applications and it work i added: image/jpeg=gpicview.desktop in default applications, but i want to make it work editing the /etc/mc/mc.ext file.
Offline
dont know if it helps but in my mc.ext file I just have for JPEG
type/^JPEG
View=/usr/bin/viewnior %f
Open=/usr/bin/viewnior %f maybe try it?
You can like linux without becoming a fanatic!
Offline
First, don't edit /etc/mc/mc.ext, but use F9 > Command > Edit extension file. This creates a local copy in ~/.config/mc
If you look at the ### Images ### section, most of it has Include=image. A bit further down, there's include/image which opens a script in /usr/lib/mc/ext.d. This script uses xdg-open, and IF this fails, it uses predefined actions for image formats.
As such, setting a working default in mimeapps.list gives the expected result. Modifying the action as in #4 should probably also work.
Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby
Offline