all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Piotr Kalinowski <pitkali@gmail.com>
To: emacs-devel@gnu.org
Subject: Re: About PATH environment variable on OSX
Date: Sat, 13 Apr 2013 14:33:01 +0200	[thread overview]
Message-ID: <m2y5cmobfj.fsf@gmail.com> (raw)
In-Reply-To: m2a9p3b4tt.fsf@homonculus.net

James Felix Black <jfb@homonculus.net> 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




  reply	other threads:[~2013-04-13 12:33 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-07 18:19 About PATH environment variable on OSX Darren Hoo
2013-04-12  5:05 ` Jan Djärv
2013-04-12 12:39   ` Piotr Kalinowski
2013-04-12 14:07     ` Peter Vasil
2013-04-13  1:24       ` James Felix Black
2013-04-13 12:33         ` Piotr Kalinowski [this message]
2013-04-12 15:01   ` Harald Hanche-Olsen
2013-04-13  4:59 ` Josh
2013-04-13 12:41   ` Piotr Kalinowski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2y5cmobfj.fsf@gmail.com \
    --to=pitkali@gmail.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.