On Mar 23, 2011, at 17:37, Dave Ray wrote:

> Peter Dyballa wrote:
> 
>>> I'm not using bash, I'm true to tcsh. It works as described: What I  
>>> set in ~/.login appears in the environment of the X clients. (The  
>>> question stays: Why do I have to set the environment values twice?)  
>>> And X11.app obviously knows the value of $HOME; why doesn't it launch  
>>> its X clients in $HOME? GNU Emacs, FontForge, xterm – all are in /!  
>>> X11.app has PWD=/Users/me. Why do the X clients forget it or set it  
>>> to /? They have HOME=/Users/me set.
> 
> Actually, a correction.
> 
> I'm observing the same thing on shells that are launched by my window manager 
> (e17). Those shells are dropping me in at the root level, but my ENV looks 
> correct in those shells. $HOME=/Users/davidray.
> 
> Shells/terminals launched by X11.app (from the Applications menu) are 
> correctly dropping me into my home directory.

Ok, this is likely because your WM is launched from xinit which is launched by 
launchd which probably has PWD=/

> It seems there's something unusual about the environment that the wm is 
> getting. I'm using a 3rd party wm so it's hard for me to tell if the issue is 
> in XQuartz or that wm.

Nope... nothing unusual, you just need to trace the process hierarchy 

_______________________________________________
Xquartz-dev mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/xquartz-dev

Reply via email to