The problem with getting an associated file type (.png) to enter into IrfanView when single clicking on the filename kept niggling me. Santa had been and the grandkids were extremely energetic

great situation to test my powers of concentration. Well that power is not good.
I was trying to avoid a script file and make a single line statement that could go into the command line on the file association location. This so far failed. By combining the information from a few links I could see the pattern and decided nothing lost just trying the script .
#!/bin/sh
File="z:"${1//\//\\}
wine "/usr/share/IrfanView/i_view32.exe" $File
Saved this on the Desktop
/home/gert/Desktop/Irf_test.scr
Making the file executable
[root@localhost gert]# chmod +x /home/gert/Desktop/Irf_test.scr
[root@localhost gert]#
In the file association location for command::
/home/gert/Desktop/Irf_test.scr %fNow when clicking on any .png file it will open in IrfanView, I notice that it is a bit slower opening than if I used "IrfanView" in the command line position.
I am assuming that an experienced scriptwriter could combined the script file two lines and the script avoided but my attempt failed.
The following was a line I modified from:
http://ubuntuforums.org/showthread.php?t=1655485wine "/usr/share/IrfanView/i_view32.exe" "Z:\\$(echo "$@" | sed 's/\//\\/g')" $@I can't decipher the last approximate half of the line.
Anyone step up and make a working single line.
