[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: About PATH environment variable on OSX
From: |
James Felix Black |
Subject: |
Re: About PATH environment variable on OSX |
Date: |
Fri, 12 Apr 2013 21:24:30 -0400 |
User-agent: |
mu4e 0.9.9.5; emacs 24.3.1 |
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 <address@hidden> wrote:
>> Jan Djärv <address@hidden> 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.
>>
>>
Re: About PATH environment variable on OSX, Josh, 2013/04/13