[OS X Emacs] Re: Environment variables and Aquamacs 2.0

Norman Gray norman at astro.gla.ac.uk
Wed May 26 18:04:33 EDT 2010


Jan, hello.

On 2010 May 26, at 22:01, Jan Dubois wrote:

> There is actually at least one more scenario: Aquamacs being started
> from Spotlight.  In which case you get neither environment.plist
> nor shell environment variables because the process starts out as
> a child of Spotlight, which is not running under the current user.


I don't believe this would be a separate scenario.  Spotlight (and other application launchers) will launch applications by getting launchd to launch them, which is the same as the Finder does.  They therefore inherit launchd's environment, which is the environment which is set by environment.plist.  (I may be wrong in a couple of fine details here, but that's the basic notion, which is unfortunately not documented as obviously as one would like).

Norman


-- 
Norman Gray  :  http://nxg.me.uk




More information about the MacOSX-Emacs mailing list