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: Fri, 12 Apr 2013 14:39:57 +0200 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1365770410 31497 80.91.229.3 (12 Apr 2013 12:40:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 12 Apr 2013 12:40:10 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Apr 12 14:40:14 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 1UQdH3-0001rV-Jt for ged-emacs-devel@m.gmane.org; Fri, 12 Apr 2013 14:40:13 +0200 Original-Received: from localhost ([::1]:40180 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQdH3-0008W7-8B for ged-emacs-devel@m.gmane.org; Fri, 12 Apr 2013 08:40:13 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:34189) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQdGz-0008Vz-KP for emacs-devel@gnu.org; Fri, 12 Apr 2013 08:40:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UQdGx-0001pA-Vi for emacs-devel@gnu.org; Fri, 12 Apr 2013 08:40:09 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:43122) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQdGx-0001oi-Pr for emacs-devel@gnu.org; Fri, 12 Apr 2013 08:40:07 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UQdGu-0001e5-0G for emacs-devel@gnu.org; Fri, 12 Apr 2013 14:40:04 +0200 Original-Received: from 83.218.67.122 ([83.218.67.122]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 12 Apr 2013 14:40:03 +0200 Original-Received: from pitkali by 83.218.67.122 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 12 Apr 2013 14:40:03 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 24 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 83.218.67.122 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (darwin) Cancel-Lock: sha1:++8XWxk8SIrKUjCAXbnw74z8k9I= 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:158853 Archived-At: Jan Djärv writes: > The way to this on newer OSX is to create /etc/launchd.conf and put > something like: > > setenv PATH /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin > > in there. I have not tried this myself. I'm on Mac, and I can confirm that this is the way to go, if you want to have correct PATH for applications that are not started from Terminal. What you set in /etc/paths and similar will work for the shell environment in Terminal, and applications started from there. It is worth noting, that modifying PATH in this way requires you to relog into graphical session. Actually, unless you run this manually through launchctl, a full reboot might be required. I can't remember, if that's the case. Best regards, Piotr Kalinowski -- Intelligence is like a river: the deeper it is, the less noise it makes.