I donwload for a few times xnview but it close the programme immetiately when I want do open it

I have no idea what the fault is.
Can somebody help me
Moderators: XnTriq, helmut, xnview
Which OSX do you have?veronika wrote:what I have do to?
I donwload for a few times xnview but it close the programme immetiately when I want do open it![]()
I have no idea what the fault is.
Can somebody help me
ReallyFjRond wrote:Hello,
I used XnView for a year. I have the last version of XnView, but it can't open since the last Mac OS update (10.4.6).
Nathaniel wrote:I have the same trouble as FjRond:
> I used XnView for a year. I have the last version of XnView, but it can't open since the last Mac OS update (10.4.6).
I found the source of the problem: the script used to figure out how to set the $DISPLAY environment variable appears not to work under 10.4.6
Solution:
right-click on XnView.app --> Show Package Contents
open Contents --> Resources --> script
delete or comment out the following section (everything between and including these lines):
# try to figure out DISPLAY cleverly
...
export DISPLAY
add the following instead (at the same place in the script):
# make sure DISPLAY is set
if [ x"$DISPLAY" = x ]; then
DISPLAY=:0.0
export DISPLAY
fi
This should work fine for you unless you are using mulitple DISPLAYS (I think). A second option is to use apple's open-x11, i.e. replace entire script contents with:
#!/bin/sh
XNVIEW="$1/Contents/Resources/xnview"
open-x11 "$XNVIEW"
The downside here is that open-x11 doesn't pass arguments on to xnview, so you can't open an image in XnView by double-clicking the image or using "Open With"; XnView will open, but you'll have to File-->Open your image.
A final option is to use xLaunch-o-matic (http://xlaunch.sourceforge.net/), which you can set up and associate with image files so they'll open in XnView when double-clicked.
Hope that helps!
Anonymous wrote:I've tried both ways now, and neither work ;(
Nathaniel wrote:I have the same trouble as FjRond:
> I used XnView for a year. I have the last version of XnView, but it can't open since the last Mac OS update (10.4.6).
I found the source of the problem: the script used to figure out how to set the $DISPLAY environment variable appears not to work under 10.4.6
Solution:
right-click on XnView.app --> Show Package Contents
open Contents --> Resources --> script
delete or comment out the following section (everything between and including these lines):
# try to figure out DISPLAY cleverly
...
export DISPLAY
add the following instead (at the same place in the script):
# make sure DISPLAY is set
if [ x"$DISPLAY" = x ]; then
DISPLAY=:0.0
export DISPLAY
fi
This should work fine for you unless you are using mulitple DISPLAYS (I think). A second option is to use apple's open-x11, i.e. replace entire script contents with:
#!/bin/sh
XNVIEW="$1/Contents/Resources/xnview"
open-x11 "$XNVIEW"
The downside here is that open-x11 doesn't pass arguments on to xnview, so you can't open an image in XnView by double-clicking the image or using "Open With"; XnView will open, but you'll have to File-->Open your image.
A final option is to use xLaunch-o-matic (http://xlaunch.sourceforge.net/), which you can set up and associate with image files so they'll open in XnView when double-clicked.
Hope that helps!