This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: opening X display
- To: raf2 at zip dot com dot au (raf)
- Subject: Re: opening X display
- From: Arlindo da Silva <arlindo at niteroi dot gsfc dot nasa dot gov>
- Date: Tue, 4 Nov 1997 06:57:25 -0500 (EST)
- Cc: gnu-win32 at cygnus dot com
>
> an x app works fine when run directly from the command line.
> but when another program calls it, it fails to open the display.
> does anyone know why this is and what can be done about it?
>
I am not sure. I spawnv() X applications all the time and have no problems
openning the display. Before starting the X application I always make sure
DISPLAY is set, e.g.,
if ( !getenv("DISPLAY") ) putenv("DISPLAY=localhost:0.0");
spawnv(_P_DETACH,path,argv), etc...
As I reported here the other day, I am having problems with execv() in the
lastest coolview.
--
Arlindo da Silva
dasilva@alum.mit.edu
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".