From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Piotr Kalinowski Newsgroups: gmane.emacs.devel Subject: Re: About PATH environment variable on OSX Date: Sat, 13 Apr 2013 14:33:01 +0200 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1365856732 24150 80.91.229.3 (13 Apr 2013 12:38:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 13 Apr 2013 12:38:52 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Apr 13 14:38:56 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UQzjK-0007YL-K6 for ged-emacs-devel@m.gmane.org; Sat, 13 Apr 2013 14:38:54 +0200 Original-Received: from localhost ([::1]:59684 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQzjK-0000Vw-6b for ged-emacs-devel@m.gmane.org; Sat, 13 Apr 2013 08:38:54 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:42465) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQzjF-0000T9-Ih for emacs-devel@gnu.org; Sat, 13 Apr 2013 08:38:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UQzjE-000250-3R for emacs-devel@gnu.org; Sat, 13 Apr 2013 08:38:49 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:35315) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQzjD-00024d-TY for emacs-devel@gnu.org; Sat, 13 Apr 2013 08:38:48 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UQzjC-0007OI-Ag for emacs-devel@gnu.org; Sat, 13 Apr 2013 14:38:46 +0200 Original-Received: from h-35-89.a336.priv.bahnhof.se ([46.59.35.89]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 13 Apr 2013 14:38:46 +0200 Original-Received: from pitkali by h-35-89.a336.priv.bahnhof.se with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 13 Apr 2013 14:38:46 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 26 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: h-35-89.a336.priv.bahnhof.se User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (darwin) Cancel-Lock: sha1:Oa/bC+ajVbzSoldsyuahbkZL9zE= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:158880 Archived-At: James Felix Black writes: > Hello -- > > In recent versions of OS X, one can modify environment variables for the > currently running graphical session with the launchctl (1) command: > > % launchctl setenv PATH /foo/bar/baz:$PATH > > ... will work as expected. I just tried it, but it did not work. I've run this command in Terminal, and then restarted Emacs, but it still had the old value for PATH. And it makes sense, because set of enviroment variables is given to an application on start, and does not change later. In order for application to pick up changes, you need to launch it again. In this case, you'll need to follow it up with % killall Dock Then the applications started will have new environment. (Although I tested this only for applications started from dock. You could restart Finder as well ;) Best regards, Piotr Kalinowski