delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/11/04/04:07:17

From: arlindo AT niteroi DOT gsfc DOT nasa DOT gov (Arlindo da Silva)
Subject: Re: opening X display
4 Nov 1997 04:07:17 -0800 :
Message-ID: <199711041157.GAA02721.cygnus.gnu-win32@woodmore.gsfc.nasa.gov>
References: <3 DOT 0 DOT 1 DOT 32 DOT 19971104070019 DOT 00927d30 AT zip DOT com DOT au>
Mime-Version: 1.0
To: raf2 AT zip DOT com DOT au (raf)
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 AT alum DOT mit DOT edu


-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019