From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Vasil Newsgroups: gmane.emacs.devel Subject: Re: About PATH environment variable on OSX Date: Fri, 12 Apr 2013 16:07:58 +0200 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1365775697 25759 80.91.229.3 (12 Apr 2013 14:08:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 12 Apr 2013 14:08:17 +0000 (UTC) To: Piotr Kalinowski , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Apr 12 16:08:19 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 1UQeeI-00031I-IA for ged-emacs-devel@m.gmane.org; Fri, 12 Apr 2013 16:08:18 +0200 Original-Received: from localhost ([::1]:52294 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQeeI-0003v0-3x for ged-emacs-devel@m.gmane.org; Fri, 12 Apr 2013 10:08:18 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:56829) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQee6-0003te-AC for emacs-devel@gnu.org; Fri, 12 Apr 2013 10:08:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UQee1-00081c-MV for emacs-devel@gnu.org; Fri, 12 Apr 2013 10:08:06 -0400 Original-Received: from serv32.loswebos.de ([213.187.93.131]:36671) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQee1-00081H-Et for emacs-devel@gnu.org; Fri, 12 Apr 2013 10:08:01 -0400 Original-Received: from mail-we0-f171.google.com (mail-we0-f171.google.com [74.125.82.171]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by serv32.loswebos.de (Postfix) with ESMTPSA id 0F2571994854 for ; Fri, 12 Apr 2013 16:08:24 +0200 (CEST) Original-Received: by mail-we0-f171.google.com with SMTP id i48so341383wef.2 for ; Fri, 12 Apr 2013 07:07:58 -0700 (PDT) X-Received: by 10.180.183.197 with SMTP id eo5mr4330671wic.28.1365775678210; Fri, 12 Apr 2013 07:07:58 -0700 (PDT) Original-Received: by 10.217.107.4 with HTTP; Fri, 12 Apr 2013 07:07:58 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 213.187.93.131 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:158855 Archived-At: Hi, With this package you can solve the problem without launchctl and set the PATH within emacs https://github.com/purcell/exec-path-from-shell Best, Peter On Fri, Apr 12, 2013 at 2:39 PM, Piotr Kalinowski wrote= : > Jan Dj=C3=A4rv 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. > >