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)


Igor,

Igor Pechtchanski wrote:
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.

I like your suggestions. Both of these are simpler than adding a variable substitution system to the preferences file, and neither require that the person writing the preferences file have any knownledge of needing to pass any informationa about which display to run the program on.


Harold


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