Subject: Re: bug#15402: 24.3; Emacs and Mac OS Dock bad launch behavior

From: Jan Djärv <[email-masked]>
Date: Thu, 19 Sep 2013 17:54:02 +0200

Hello.

18 sep 2013 kl. 19:24 skrev Stefan Monnier <[email-masked]>:

>> This is NOT required when launching Emacs from the command line!
> 
> Typically, the difference between the two is that running Emacs from the
> command line runs it with environment variables set by your shell's init
> scripts, whereas running it from the GUI does not have those
> env-vars set.
> 
> IOW please compare M-: process-environment RET in the two cases, it will
> probably contain a clue.
> 

I already checked, LANG is needed to be set properly in the environment, and it isn't when laucnhng from dock.  M-x setenv doesn't help, as it really doesn't setenv anything (should be renamed IMHO).

So see launchd.conf and launchctl (setenv) on how to add to the environment of programs launched from dock.

	Jan D.