[Xquartz-dev] env variables and launchd problem
Jeremy Huddleston
jeremyhu at apple.com
Wed Mar 23 17:57:39 PDT 2011
On Mar 23, 2011, at 14:24, Peter Dyballa wrote:
>
> Am 23.03.2011 um 19:44 schrieb Jeremy Huddleston:
>
>> As I mentioned earlier, it has to do with X11.app inheriting a login shell environment from ~/.bash_profile, ~/.bash_login, or ~/.profile ... which means it does not use ~/.bashrc. Non-login shells use ~/.bashrc. If you want your ~/.bashrc used in login shells as well, make sure you source it in your ~/.bash_profile
>
> I'm not using bash, I'm true to tcsh. It works as described: What I set in ~/.login
which is analogous to ~/.bash_profile or ~/.profile for bash users
> appears in the environment of the X clients. (The question stays: Why do I have to set the environment values twice?)
And the answer remains, "you don't" ;>
> And X11.app obviously knows the value of $HOME; why doesn't it launch its X clients in $HOME?
Because it doesn't do anything with $HOME. There is no chdir() nor use of $HOME in the server itself.
> 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.
I just don't see that behavior at all...
More information about the Xquartz-dev
mailing list