Associate .jpg with....
Associate .jpg with....
Any ideas how to associate opening jpegs with irfanview through wine?
Re: Associate .jpg with....
Seems to me like they would have to reside on your faux C: drive for irfanview to see them, wouldn't they?AndyMack wrote:Any ideas how to associate opening jpegs with irfanview through wine?
That said, isn't there an irfanview for Linux?
Hope that helps
if you use this dotpup irfanview-3.98.pup from http://dotpups.de/dotpups/Graphics/
, a startscript is included.
In Rox-filer 2.5:
right-click a .jpg -> set run action
replace:
defaultpaint "$1"
with:
/usr/local/irfanview-3.98/irfanview "$1"
Attention:
if in winecfg in the "drives" tab the folder "/" is not assigned to "Z:", then edit one line in
/usr/local/irfanview-3.98/irfanview
replace the Z in the line
with your own driveletter.
If you don't want to install my dotpup, here is this script:
It simply adds a "Z:" in the beginning of the file you click on, and replaces the Linux "/" with the Windows "\".
Mark
Mark
, a startscript is included.
In Rox-filer 2.5:
right-click a .jpg -> set run action
replace:
defaultpaint "$1"
with:
/usr/local/irfanview-3.98/irfanview "$1"
Attention:
if in winecfg in the "drives" tab the folder "/" is not assigned to "Z:", then edit one line in
/usr/local/irfanview-3.98/irfanview
replace the Z in the line
Code: Select all
par=`echo Z:$@ | sed "s#/#$slash$slash#g"`
If you don't want to install my dotpup, here is this script:
Code: Select all
#!/bin/bash
w=`which wine`
if [ "$w" == "" ]; then
xmessage -center -bg red "irfanview needs wine, that can not be found!"
exit 0
fi
par=`echo $@ | sed "s/^\(.\).*/\1/"`
#echo $par
if [ "$par" == "/" ]; then
slash='\\'
par=`echo Z:$@ | sed "s#/#$slash$slash#g"`
else
par=`echo $@`
fi
#echo $par
wine "/root/.wine/drive_c/Program Files/IrfanView/i_view32.exe" "$par" &
Mark
Mark