Hiya, Running the shell command open -a X11 || open -a XDarwin
Will get X11 started for the majority of users (who have it installed, of course). Documentation of the open command: http://www.hmug.org/man/1/open.php There's also an open-x11 shell command that will start Apple's X11, but not people using XDarwin (which is generally users of < 10.2, if I remember correctly). I'm not sure how exactly it behaves if Apple X11 isn't installed. Of course, you want to have some fallback mechanism if this fails (to tell your users something went wrong). Gimp.app installs some custom Carbon event handlers to accomplish this, somehow (see http://gimp- app.sf.net/ ). Dave On 22-May-06, at 2:43 AM, Arjan Molenaar wrote: > Hi, > > I'm maintainer of Gaphor <http://gaphor.sourceforge.net>, a UML > modeling tool written in Python. > > Recently I'm trying to build a Mac App for this application. This > seems to work for a great deal using py2app (thanks Bob). > > However, I have a few questions: > > * Does anyone have experience with packaging GTK+ applications > this way? > > * GTK+ requires X11. How can I start X11? What's the best way to > launch > Gaphor inside X11? > > * Gaphor generates some files from its setup.py. What's the best > way to add > those to the application package? > > > Thanks in advance, > > Arjan Molenaar > > _______________________________________________ > Pythonmac-SIG maillist - Pythonmac-SIG@python.org > http://mail.python.org/mailman/listinfo/pythonmac-sig _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig