Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Starting X server from another program



On Wed, Jul 18, 2007 at 09:04:13AM -0500, Dave Williss wrote:
> I'm trying to find a way to have an X11 application start X11.app if 
> it's not already running.

I don't usually call the .app directly.  I have a bunch of wrapper 
scripts that do this or something similar:

Xquartz $DISPLAY -depth 8 2> /dev/null &
while [ ! -e /tmp/.X11-unix/X${DISPLAY#:} ]; do
        sleep 1
done
quartz-wm &

> I'm wondering if there's a more accepted way under OS X to have one 
> program launch another. 

You could try "open -a /path/to/X11.app".

-ben

--
Ben Eisenbraun
Structural Biology Grid
http://sbgrid.org/
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/x11-users/email@hidden

This email sent to email@hidden

References: 
 >Starting X server from another program (From: Dave Williss <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.