From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: James Felix Black Newsgroups: gmane.emacs.devel Subject: Re: About PATH environment variable on OSX Date: Fri, 12 Apr 2013 21:24:30 -0400 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 1365816285 18549 80.91.229.3 (13 Apr 2013 01:24:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 13 Apr 2013 01:24:45 +0000 (UTC) Cc: Peter Vasil , Piotr Kalinowski To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Apr 13 03:24:49 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 1UQpCy-0000JR-S3 for ged-emacs-devel@m.gmane.org; Sat, 13 Apr 2013 03:24:48 +0200 Original-Received: from localhost ([::1]:36893 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQpCx-0000Dw-Kx for ged-emacs-devel@m.gmane.org; Fri, 12 Apr 2013 21:24:47 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:50428) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQpCs-0000Bk-PB for emacs-devel@gnu.org; Fri, 12 Apr 2013 21:24:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UQpCn-0006rt-AU for emacs-devel@gnu.org; Fri, 12 Apr 2013 21:24:42 -0400 Original-Received: from out3-smtp.messagingengine.com ([66.111.4.27]:36706) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQpCn-0006rY-0K for emacs-devel@gnu.org; Fri, 12 Apr 2013 21:24:37 -0400 Original-Received: from compute2.internal (compute2.nyi.mail.srv.osa [10.202.2.42]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id D534F20B76; Fri, 12 Apr 2013 21:24:34 -0400 (EDT) Original-Received: from frontend1.nyi.mail.srv.osa ([10.202.2.160]) by compute2.internal (MEProxy); Fri, 12 Apr 2013 21:24:34 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=homonculus.net; h= from:to:cc:subject:references:in-reply-to:date:message-id :mime-version:content-type:content-transfer-encoding; s=mesmtp; bh=NJGgMHoYSxsrnK7Ou8JZRf262e4=; b=h6K32JkKeL6xFZ0jDXwgf63bfUF9 MCc+ypouLJBl4mEWho5Rr8dSVfpgjl2AspUkB/VgpSSRgp1kHx03ap9WH4fCuo/D uRBf9d2GkBzyz2KY5CdkIykRdY5y7iaLYvJLr2CCLU+eQtA7Oru32Y3NJwc04Qrs qWSmS+o+sDQijHQ= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=from:to:cc:subject:references:in-reply-to :date:message-id:mime-version:content-type :content-transfer-encoding; s=smtpout; bh=NJGgMHoYSxsrnK7Ou8JZRf 262e4=; b=M4lecjQ2YbRD+XltcMjLZU7uG6TPsxPWmml/WDE1epw46zwlAyVoU6 Z8eDOc+SyOmB28IveT/6xY+Z3Yd5ETS6EN2RSZddLtV5C3tvmalGalEFYCMQbeMP wARrYi9a8g+w1FyrCv7S2agcRMxlu6Cl4jo9iP0pXRhJ/ijNq3O34= X-Sasl-enc: gn0j/QlWQsOgTLQBLoJmFLK51IGzjW0B2Pg3/Msxrvr3 1365816273 Original-Received: from das-Ding-an-sich.local (unknown [69.165.148.112]) by mail.messagingengine.com (Postfix) with ESMTPA id C2C85C80004; Fri, 12 Apr 2013 21:24:32 -0400 (EDT) User-agent: mu4e 0.9.9.5; emacs 24.3.1 In-reply-to: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 66.111.4.27 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:158869 Archived-At: 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. HTH, jfb Peter Vasil writes: > 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 w= rote: >> 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 make= s. >> >>