Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

noire anqa

macrumors regular
Original poster
Aug 20, 2010
137
0
Hi there,

Is there any way to run an X11 gui app by launching it from a native mac app, cocoa or applescript cocoa?

We're hoping to distribute a mac build.

Cheers.
 
FWIW MATLAB does this. Their launcher starts X11 and then opens the other Windows.

I suppose they may use system or NSTask to launch X11.

B
 
X11.app will autolaunch as soon as a program tried to connect to it. You'll notice on Mac OS X that DISPLAY is not the usually 127.0.0.1:0, but a path to a filesystem socket. When this socket is opened X11.app will launch. Try catting the filesystem socket and you'll launch X11.app.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.