We really need a way to start X11 without an xterm on OS X. Any idea?

This commit is contained in:
js 2008-06-08 10:29:06 +00:00
parent 03d68c0d26
commit 1eeee2d531
1 changed files with 3 additions and 1 deletions

View File

@ -143,7 +143,9 @@ try:
except Warning, msg:
if str(msg) == 'could not open display':
if sys.platform == 'darwin':
# TODO: This starts also xterm by default. Find a better way
# It seems there is no way to open X11 without also
# opening an xterm. Even Apple's open-x11 script
# opens the application AND an xterm.
os.system('/Applications/Utilities/X11.app/Contents/MacOS/X11 &')
try:
import gtk