This is the mail archive of the cygwin-xfree@cygwin.com mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: XWinrc configurable server (menus/icons)


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,
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/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]