On Wed, 6 Aug 2003, Igor Pechtchanski wrote: > On Wed, 6 Aug 2003, Alexander Gottwald wrote: > > > On Wed, 6 Aug 2003, Earle F. Philhower III wrote: > > > > > The started > > > app sees all ENV variables that XWin.exe saw at startup, so if you set > > > your DISPLAY before starting XWin you don't need the -display x.x.x.x:y.y > > > options. > > > > Don't rely on that. At our company many people are using just XWin and no > > startup scripts (were using it to connect to a compute server). There is > > no DISPLAY variable set. > > > > And you don't know if the Microsoft Services for Unix will preset DISPLAY > > so some very strange value *g* > > > > bye > > ago > > Two small notes here: > 1) You can actually call setenv("DISPLAY", value) inside the XWin process, ^^^^^^^^^^^^^^^^^^^^^^^^ Umm, make that {char buf[80]="DISPLAY=";putenv(strcat(buf,value));} Sorry. The point remains, however.
> which will be inherited by XWin's children. > 2) You can pass an explicit environment pointer to execl (well, execle, > actually). > > Either way, you don't have to rely on the outside environment. > Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ [EMAIL PROTECTED] ZZZzz /,`.-'`' -. ;-;;,_ [EMAIL PROTECTED] |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! "I have since come to realize that being between your mentor and his route to the bathroom is a major career booster." -- Patrick Naughton