[Xquartz-dev] env variables and launchd problem - solved

Dave Ray apple at jonive.com
Wed Mar 23 20:43:02 PDT 2011


Jeremy Huddleston wrote: 

> > Is there a good way for me to pass my ENV to whatever is launched by ~/.xinitrc.d/99-wm.sh, without passing the ENV to every single launchd process?
> 
> Yes.
> 
> echo ". ~/.profile" > ~/.xinitrc.d/00-env.sh
> echo "cd $HOME" >> ~/.xinitrc.d/00-env.sh
> chmod 755 ~/.xinitrc.d/00-env.sh

That solved everything. Thanks!

On unix I always did this, but I never did it on MacOS. It wasn't intuitive that xinit would pass a different ENV than launchd.  

I suspect this will fix Peter's problem as well. 

-Dave




More information about the Xquartz-dev mailing list