cannot open xnview

Questions, suggestions, and answers for XnView on MacOS X

Moderators: helmut, XnTriq, xnview

cannot open xnview

Postby veronika » Sun Nov 20, 2005 3:07 am

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
veronika
 

Re: cannot open xnview

Postby xnview » Sun Nov 20, 2005 12:44 pm

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

Postby Veronika » Tue Nov 22, 2005 11:03 am

Yes with OSX 10.4.3

Greetings Veronika
Veronika
 

Postby yashwanth » Mon Dec 12, 2005 10:31 am

Veronika wrote:Yes with OSX 10.4.3

Greetings Veronika


Yashwa wrote: the same problem is happening to me
:(, please give us a solution
yashwanth
 

Postby xnview » Mon Dec 12, 2005 10:39 am

Veronika wrote:Yes with OSX 10.4.3

Could you try to start xnview from a console/shell XnView.app/Contents/MacOS/XnView
Pierre.
User avatar
xnview
Author of XnView
 
Posts: 26843
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Opening XnView

Postby FishNrib » Tue Mar 14, 2006 6:23 pm

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
FishNrib
 

XnView and 10.4.6 ?

Postby FjRond » Mon Apr 10, 2006 7:46 pm

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).
FjRond
 
Posts: 1
Joined: Mon Apr 10, 2006 7:44 pm

Re: XnView and 10.4.6 ?

Postby xnview » Tue Apr 11, 2006 7:09 am

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

Postby Nathaniel » Tue Apr 11, 2006 6:14 pm

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
 

Postby Guest » Fri Apr 14, 2006 10:18 am

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
 

Postby Nathaniel » Tue Apr 18, 2006 6:27 am

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

Postby vlad » Wed Jul 19, 2006 4:49 am

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

Postby Guest » Sat Aug 26, 2006 5:40 pm

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 ;-)
Guest
 

can't open in OSX

Postby gm770 » Sat Oct 07, 2006 8:08 pm

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??
gm770
 

solution look at this

Postby raphael wolfer » Mon Oct 09, 2006 10:16 am

raphael wolfer
 


Return to XnView Mac OS X

Who is online

Users browsing this forum: No registered users and 1 guest