comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Mac OSX and IDL6.3
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Mac OSX and IDL6.3 [message #48782 is a reply to message #48781] Thu, 18 May 2006 08:53 Go to previous messageGo to previous message
Edd Edmondson is currently offline  Edd Edmondson
Messages: 50
Registered: January 2003
Member
Mark Branson <mark@atmos.colostate.edu> wrote:
> Hi Ben.

> Our research group ran into the exact same problem on our G5s, and the
> solution is to run this command:

> setenv DISPLAY <your machine name>:0

> I just inserted that line in my .cshrc file and everything works again
> with Terminal.app.

I'm somewhat surprised that it fails with a bus error in this
circumstance rather than a simple display error... anyway...

I'd point everyone to a post by Dietrich Onnasch a while back who
showed how to correctly set the DISPLAY variable, because you can't
guarantee it's going to be 0. A slightly modified version of this
script (Nathan Nutter added a check to it for when X11 isn't running)
is:

if [ -e /tmp/.X11-unix/* ] then X11_FOLDER=/tmp/.X11-unix
currentUser=`(set \`whoami\`; echo $1)`
bb=`ls -l $X11_FOLDER | grep $currentUser`
bbb=${bb/*X/:}
usedDISPLAY=$bbb.0
export DISPLAY=$usedDISPLAY fi

I'd recommend this over any hard coding of the DISPLAY to 0, as if you
end up in a situation where it isn't it'll have you scratching your
head for some time trying to figure out what's happening.

A common circumstance for DISPLAY not being 0 is if you're using the
Fast User Switching. It's quite easy to have your IDL graphics windows
appearing on someone else's display if you're not careful.

--
Edd
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: GDL and plplot in FC5
Next Topic: Re: New version of my AVI reader/writer

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 19:29:33 PDT 2025

Total time taken to generate the page: 0.00462 seconds