Wine staging 10.11 and Irfanviev

Questions about Wine on Linux
Post Reply
HunHKPK
Newbie
Newbie
Posts: 3
Joined: Sun Jan 08, 2023 12:21 pm

Wine staging 10.11 and Irfanviev

Post by HunHKPK »

After updating to Wine 10.11 (staging) on Linux Mint got a problem with Irfanview.
Issue: by clicking on an image file got an error message:

Z:\<path>\filename : Can't read file header!
Unknown file format, empty/damaged file or file not found !

Opening the file in Irfanview via file / open menu works, there is not a flie problem.
Tried several Irfanview versions, same result.

I have a desktop file with this content:

Code: Select all

[Desktop Entry]
Name=IrfanView 64-bit
Path=/home/andrea/.wine/drive_c/Program Files/IrfanView
Exec=sh -c "wine i_view64.exe \\$(winepath -w %u)"
Comment=IrfanView képnéző
Terminal=false
Icon=/home/andrea/.wine/drive_c/Program Files/IrfanView/i_view64.png
Type=Application
Hidden=false
NoDisplay=false
GenericName=IrfanView
StartupNotify=true
Categories=GTK;Graphics;Viewer;
MimeType=image/bmp;image/g3fax;image/gif;image/x-fits;image/x-pcx;image/x-portable-anymap;image/x-portable-bitmap;image/x-portable-graymap;image/x-portable-pixmap;image/x-psd;image/x-sgi;image/x-tga;image/x-xbitmap;image/x-xwindowdump;image/x-xcf;image/x-compressed-xcf;image/x-gimp-gbr;image/x-gimp-pat;image/x-gimp-gih;image/tiff;image/jpeg;image/x-psp;application/postscript;image/png;image/x-icon;image/x-xpixmap;image/x-exr;image/x-webp;image/heif;image/heic;image/svg+xml;application/pdf;image/x-wmf;image/jp2;image/x-xcursor;
X-Desktop-File-Install-Version=0.27
PrefersNonDefaultGPU=false
It seems that the problem is with parsing the file name with:
Exec=sh -c "wine i_view64.exe \\$(winepath -w %u)"

Is this a bug, or something changed with this method?
User avatar
KenSharp
Level 4
Level 4
Posts: 169
Joined: Mon Jul 13, 2009 8:52 pm

Re: Wine staging 10.11 and Irfanviev

Post by KenSharp »

You're probably seeing Bug 58435 and it should be fixed in Wine 10.12.
Post Reply