I'm running PCLinuxOS and have Irfanview set as my default image viewer. When I click on an image file Irfanview opens properly but does not open the file as it does in Windows. I have to manually navigate to the image location through Irfanview to open it. I take a lot of pictures and have to crop, resize and adjust brightness and contrast a lot and Irfanview is my "go to first" viewing and editing tool because it is so fast, does so much and simple to use with just a few simple keyboard strokes.
How can I get Irfanview to open the image when I double click it?
Clicking image files will not auto open with irfanview.
Clicking image files will not auto open with irfanview.
On Wed, 2012-06-13 at 17:55 -0500, skikir wrote:
1)write a wrapper script (call it 'irfanview') that:
- sets WINEPREFIX for wherever you installed irfanview
- changes directory to where the Irfanview EXE is installed
- runs "wine Irfanview.exe $1
2)make the script executable and test it. The command
irfanview imagename.jpg
should run it
3)put the script somewhere safe that's in the search path
(defined by $PATH)
4)now start your file manager (Nautilus if you're using Gnome or a
Gnome-derived window manager) and configure it so your script
is the preferred application for the image extensions you want to
use Irfanview with. You do this in much the same way you would change
file:program associations in Windows Exploder.
Martin
What usually do is:I'm running PCLinuxOS and have Irfanview set as my default image
viewer. When I click on an image file Irfanview opens properly but
does not open the file as it does in Windows. I have to manually
navigate to the image location through Irfanview to open it. I take a
lot of pictures and have to crop, resize and adjust brightness and
contrast a lot and Irfanview is my "go to first" viewing and editing
tool because it is so fast, does so much and simple to use with just a
few simple keyboard strokes.
How can I get Irfanview to open the image when I double click it?
1)write a wrapper script (call it 'irfanview') that:
- sets WINEPREFIX for wherever you installed irfanview
- changes directory to where the Irfanview EXE is installed
- runs "wine Irfanview.exe $1
2)make the script executable and test it. The command
irfanview imagename.jpg
should run it
3)put the script somewhere safe that's in the search path
(defined by $PATH)
4)now start your file manager (Nautilus if you're using Gnome or a
Gnome-derived window manager) and configure it so your script
is the preferred application for the image extensions you want to
use Irfanview with. You do this in much the same way you would change
file:program associations in Windows Exploder.
Martin
OK,,,,,"write a wrapper script",,,"sets WINEPREFIX ..." ,,,, O,K...,,,, I think I will need to re read this a couple dozen times.
Would I need to do this for every application running under Wine I install? Say, opening an .XLS file with Xcel or .PDF with Acrobat?
Can I use aluminum or plastic for the wrapper? Or is this music...I hate Wrap.
Don't get me wrong, I've been using computers since the 70's where we used lights and switches to load paper tape to be able to add 2+2. But I've just lost all interest of "making it work." I kinda thought this would have been an easy pass through function already integrated in the system. I have just absolutely developed a mental block anymore to throw backs to the command line and batch files.

Would I need to do this for every application running under Wine I install? Say, opening an .XLS file with Xcel or .PDF with Acrobat?
Can I use aluminum or plastic for the wrapper? Or is this music...I hate Wrap.
Don't get me wrong, I've been using computers since the 70's where we used lights and switches to load paper tape to be able to add 2+2. But I've just lost all interest of "making it work." I kinda thought this would have been an easy pass through function already integrated in the system. I have just absolutely developed a mental block anymore to throw backs to the command line and batch files.
Clicking image files will not auto open with irfanview.
On Thu, 2012-06-14 at 12:49 -0500, skikir wrote:
prefix "~/.wine" - and its considered good practise to put unrelated
apps in separate Wine prefixes since it means that updating one of them
is less likely to corrupt anything else in that prefix.
Including setting WINEPREFIX you also need to:
(a) cd to the directory holding the EXE you want to run because, unlike
Linux programs, Windows EXEs typically expect your current working
directory to be set to the directory they're installed in.
(b) issue the "wine myexe.exe \opts files" with the program name
expressed as a local name and with absolute paths for any files passes
as command line parameters.
You can always try setting up a launcher or configuring the file manager
with all three terms in its command field like this:
export WINEPREFIX=~/.wineprefix; cd path/to/exe/dir; wine myexe.exe ..
but you may find it easier to put the three items in a wrapper script
and reference that. FWIW there are two good places to put the script:
1) If you tend use different logins for different tasks, make sure that
/usr/local/bin is in $PATH and put it there. If /usr/local/bin isn't in
$PATH, add a file to /etc/profile.d called, say, path.sh containing the
line:
pathmunge /usr/local/bin after
You only have to do this once.
2) If you'll only use it from one login, set up the $HOME/bin directory
in that login and add the line:
export PATH=$PATH:$HOME/bin
into $HOME/.bashrc as the last line. You only have to do this once.
Last but not, least, don't forget that running stuff under Wine is bound
to be harder to do than running native packages because the way Windows
apps like to be run seems just perverse when you're used to Linux. Have
you tried using native image manipulators, e.g. Shotwell, F-spot or
Image Magick to deal with directories full of image files and GIMP for
detailed hackery on an individual file?
Reader.
I find that the Libre Office does a good job of reading every XLS, DOC
and PPT file I've tried it with and of writing them if some poor,
benighted Orifice user has the read them. It exports PDFs too.
Reading PDF files? xpdf does a good job displaying any PDF I've needed
to read.
Martin
You *must* set $WINEPREFIX if your Window app isn't in the default WineOK,,,,,"write a wrapper script",,,"sets WINEPREFIX ..." ,,,, O,K...,,,, I think I will need to re read this a couple dozen times. [Shocked]
prefix "~/.wine" - and its considered good practise to put unrelated
apps in separate Wine prefixes since it means that updating one of them
is less likely to corrupt anything else in that prefix.
Including setting WINEPREFIX you also need to:
(a) cd to the directory holding the EXE you want to run because, unlike
Linux programs, Windows EXEs typically expect your current working
directory to be set to the directory they're installed in.
(b) issue the "wine myexe.exe \opts files" with the program name
expressed as a local name and with absolute paths for any files passes
as command line parameters.
You can always try setting up a launcher or configuring the file manager
with all three terms in its command field like this:
export WINEPREFIX=~/.wineprefix; cd path/to/exe/dir; wine myexe.exe ..
but you may find it easier to put the three items in a wrapper script
and reference that. FWIW there are two good places to put the script:
1) If you tend use different logins for different tasks, make sure that
/usr/local/bin is in $PATH and put it there. If /usr/local/bin isn't in
$PATH, add a file to /etc/profile.d called, say, path.sh containing the
line:
pathmunge /usr/local/bin after
You only have to do this once.
2) If you'll only use it from one login, set up the $HOME/bin directory
in that login and add the line:
export PATH=$PATH:$HOME/bin
into $HOME/.bashrc as the last line. You only have to do this once.
Last but not, least, don't forget that running stuff under Wine is bound
to be harder to do than running native packages because the way Windows
apps like to be run seems just perverse when you're used to Linux. Have
you tried using native image manipulators, e.g. Shotwell, F-spot or
Image Magick to deal with directories full of image files and GIMP for
detailed hackery on an individual file?
Only if you insist on installing MS Orifice or the Adobe AcrobatWould I need to do this for every application running under Wine I
install? Say, opening an .XLS file with Xcel or .PDF with Acrobat?
Reader.
I find that the Libre Office does a good job of reading every XLS, DOC
and PPT file I've tried it with and of writing them if some poor,
benighted Orifice user has the read them. It exports PDFs too.
Reading PDF files? xpdf does a good job displaying any PDF I've needed
to read.
Martin