Open rgbkrk opened 10 years ago
Interesting. Any thoughts on a way to configure Atom to launch with your preferred environment from the icon?
It kind of makes me wonder if it should be part of the ~/.atom setup. That way when atom comes out for Windows, you've got what you need setup.
The only suggestion I would have for people is to mirror env vars they want into ~/.launchd.conf
, which follows a setenv
format:
setenv KEY 'value'
For script we'll be adding a way to set up the env
you need on run. Right now it defaults to using process.env
.
I am using the init script idea from #62 and it works beautifully from me. launchd.conf
and everything else people suggest just didn't seam to work for me on Mavericks.
As surfaced in https://github.com/rgbkrk/atom-script/issues/5#issuecomment-36551740, running Atom via the icon/Applications will load the environment used by
launchctl
rather than your shell.Running Atom from the terminal is the way to go if you want access to virtualenv, rvm, nvm, etc.