Re: pymol issue solved
Re: pymol issue solved
- Subject: Re: pymol issue solved
- From: Jeremy Huddleston <email@hidden>
- Date: Fri, 7 Dec 2007 18:45:32 -0800
ou shouldn't special case darwin9. Some people might get launchd/X11
from Leopard back on Tiger. And some people might disable launchd on
Leopard.
You should just check if you can connect to an X display ('xdpyinfo
>& /dev/null' maybe ... or use direct python calls). If not, run
os.system("/usr/bin/open -a X11").
Of course, this makes me wonder... how are you setting DISPLAY for
Tiger?
--Jeremy
On Dec 7, 2007, at 18:13, Jack Howarth wrote:
Ben's comment that pymol needs to stop starting
X11 again led me to comment out lines as shown from
pymol's modules/pymol/__init__.py...
def prime_pymol():
global glutThread
try:
glutThread
except NameError:
glutThread = thread.get_ident()
pymol_launch = 0 # never do this again : )
# if (sys.platform=='darwin') and
(invocation.options.external_gui==1):
# import os
# os.system("/usr/bin/open -a X11") # launch X11 if we're
going to need it
The modules/pymol/__init__.py script is called with...
exec /sw/bin/python2.5 $PYMOL_PATH/modules/pymol/__init__.py "$@"
...in the pymol startup script. Once I commented those lines out,
pymol starts up
normally. Now I need to figure out if Tiger's X11 can tolerate those
lines
being disabled or if I need to special case darwin9.
Jack
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden