cannot open xnview

Questions, suggestions, and answers for XnView on MacOS X

Moderators: XnTriq, helmut, xnview

veronika

cannot open xnview

Post by veronika »

what I have do to?
I donwload for a few times xnview but it close the programme immetiately when I want do open it :x
I have no idea what the fault is.

Can somebody help me
User avatar
xnview
Author of XnView
Posts: 44817
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: cannot open xnview

Post by xnview »

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 :x
I have no idea what the fault is.

Can somebody help me
Which OSX do you have?
Pierre.
Veronika

Post by Veronika »

Yes with OSX 10.4.3

Greetings Veronika
yashwanth

Post by yashwanth »

Veronika wrote:Yes with OSX 10.4.3

Greetings Veronika
Yashwa wrote: the same problem is happening to me
:(, please give us a solution
User avatar
xnview
Author of XnView
Posts: 44817
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Post by xnview »

Veronika wrote:Yes with OSX 10.4.3
Could you try to start xnview from a console/shell XnView.app/Contents/MacOS/XnView
Pierre.
FishNrib

Opening XnView

Post by FishNrib »

I had a hard time getting it to load also. I tryed XnView again after trying
other free viewers and discoverd an easy way to start it.

Create a folder with XnView and X11 in it. Then all you have to do is grab
X11 and drop it on top of XnView and they will both open immediately.

XnView has about the same features as Irfan View like creating a
Panorama (linking many pictures together to make one picture), Rename,
Resize, Contact Sheet, and Crop.

Thank You XnView just wish we could start it without X11.
__________________
Tom
FjRond
Posts: 1
Joined: Mon Apr 10, 2006 7:44 pm

XnView and 10.4.6 ?

Post by FjRond »

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).
User avatar
xnview
Author of XnView
Posts: 44817
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: XnView and 10.4.6 ?

Post by xnview »

FjRond 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).
Really :-( perhaps to put a link to xnview exe will be good...
Pierre.
Nathaniel

Post by Nathaniel »

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!
Guest

Post by Guest »

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!
Nathaniel

Post by Nathaniel »

Sorry my suggestions didn't help. Can you run the binary itself from the command line? This command works for me, even if the script in XnView.app is not right: /Applications/XnView.app/Contents/Resources/xnview

If not, then the problem is certainly deeper than the one I had. Good luck!
vlad

Post by vlad »

Actually, proposed solution works! The problem is in TextEdit,
it screws up new line characters while saving changes into the script.
Use some other text editor and make sure new lines are intact.

Vlad
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!
Guest

Post by Guest »

I have same problem as Veronika have

I have MacOs X 10.4.7, Power PC G5

Solutions of Nathaniel doesn't help :-(


When i trying to start from console i get following:
/Applications/XnView.app/Contents/Resources/xnview
dyld: Library not loaded: /usr/X11R6/lib/libXp.6.dylib
Referenced from: /Applications/XnView.app/Contents/Resources/xnview
Reason: image not found


Use XnView on PC before and want to say it's the best viewer i ever use. Hopefully get it for mac working ;-)
gm770

can't open in OSX

Post by gm770 »

same as the others, it closes right away. Trying to install x11, but it won't let me do that either, and the console says I need an x11 display open to run it. I'm using 10.4.3. The x11 installer says I have a newer version installed. Where can I start x11 to get this software working??
raphael wolfer

solution look at this

Post by raphael wolfer »