On Dec 4, 2003, at 5:54 PM, Ari Kahn wrote:


I have an Xwindows program (consed) that I would like to execute from perl.
Of course OSX is not Xwindows so executing it outside of an xwindows
terminal will not work because I get "Error: Can't open display: "
I need to find a way to somehow tell consed to run in an Xwindows
environment if the Xwindows server is running.

The first part of the problem is figuring out IF there is an Xwindows server up and running so that you can have the output sent there.

IF the Xwindow Server is not running, then you
will want to start it. You might want to peek at
the Open Office Folks, since they have a 'launcher
application' that will start the Xwindows Server
and then launch OpenOffice...

This of course means updating your installer to
make sure that Xwindows is installed, and then
having the person doing the installation make a
commitment to which Xwindows to start then caching
that information into a configuration file that
your perl wrapper code will use.

HTH.

ciao
drieux

---



Reply via email to