Irfanview was installed using the winetricks program, which requires to load an older version 4.33 found on oldapps.com
Then I created a launcher called "irfanview.desktop" :
[Desktop Entry]This launcher is a .desktop file based on an askubuntu answer which starts by suggesting to copy an existing .desktop file from :
Name=Irfanview Program Loader
Exec=wine /home/paul/.local/share/wineprefixes/irfanview/drive_c/Program\ Files\ \(x86\)/IrfanView/i_view32.exe
I copied the wine launcher.
I changed the image based on this Ubuntu Handbook post.
Right click menu "open with"It's also possible to edit context menus. I tried editing: "/home/paul/.local/share/applications/wine-extension-jpe.desktop"
I replaced the line starting with Exec by the following:
Exec=env WINEPREFIX="/home/paul/.local/share/wineprefixes/irfanview" wine start /ProgIDOpen IrfanView %fI adapted the exec command from this message.
Now when I right click on a JPEG image, open with / Irfanview. Irfanview starts with the image open.
Associate as default applicationMay require to edit this file:
/usr/share/gnome/applications/defaults.listAnd this page recomments to add a mime type in the folder: