Ma, Qingyu (GE Healthcare) wrote:
>> export/setenv only affect processes started from the shell after the command 
>> is
>> run.   Since myProcess is already running, the second export cannot affect 
>> it.
> 
> My understanding is when my process call XOpenDisplay(NULL), current DISPLAY 
> will be used. 

Environment variables are passed from the shell to the process when the process
is started.   Once it's started, further changes in the shell cannot change the
variables the process sees.   This has nothing to do with XOpenDisplay, but is
simply how environment variables work in all Unix processes - getenv() is the
same way.

-- 
        -Alan Coopersmith-        [email protected]
         Oracle Solaris Platform Engineering: X Window System

_______________________________________________
[email protected]: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.freedesktop.org/mailman/listinfo/xorg

Reply via email to