Problems capturing window (Solaris)

Questions, suggestions, and answers for XnView on all Un*x platforms (Linux, HP-UX, AIX, ...)

Moderators: XnTriq, xnview

Philip

Problems capturing window (Solaris)

Post by Philip »

I get the error "Error: Can't open file" if I try to capture a window on Solaris.

File-capture->Select a Window

Can't open file </var/tmp/aaauza4xn>

I can, and have been for a long time, working around it by
File->capture->Single window. That will work fine.

I am trying to upgrade to 1.68 xnview to see if it goes away. But, 1.68 is giving me other trouble to install.... which I will post separately.

Thanks for all advices on this.
Philip
User avatar
xnview
Author of XnView
Posts: 37578
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Problems capturing window (Solaris)

Post by xnview »

Philip wrote:I get the error "Error: Can't open file" if I try to capture a window on Solaris.
File-capture->Select a Window
Can't open file </var/tmp/aaauza4xn>
I can, and have been for a long time, working around it by
File->capture->Single window. That will work fine.
Which version?
Pierre.
Philip

Post by Philip »

v1.25 is the version I'm using on Solaris.

I want to upgrade to latest but I'm having a problem with the installation. Which I posted on another thread.

Thanks Pierre.
Philip

Post by Philip »

%> ./xnview.sh
./xnview.sh: test: unknown operator /sbin/uname
%>
%> /sbin/uname
SunOS
%>
User avatar
xnview
Author of XnView
Posts: 37578
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Post by xnview »

Philip wrote:%> ./xnview.sh
./xnview.sh: test: unknown operator /sbin/uname
%>
%> /sbin/uname
SunOS
%>
Ok, i check. And sh xnview.sh?
Pierre.
Cyril

Post by Cyril »

xnview wrote:
Philip wrote:%> ./xnview.sh
./xnview.sh: test: unknown operator /sbin/uname
%>
%> /sbin/uname
SunOS
%>
Ok, i check. And sh xnview.sh?
Pierre.
No in fact, ksh xnview.sh (Korn shell) should work with -e file condition...
To work in both shell (sh or ksh) xnview.sh should be written with
-x file conditon (file exists and is executable):
if [ -x /sbin/uname -o -x /bin/uname ]; then