Good day.
Would you be familiar with the username "kn" ?
The reason I am asking is that I am trying to make Atom work with Hydrogen plugin. And when started from the iTerm2 or Alfred - all works well.
When started from Nimble Commander - the local python install is not found and the plugin refers to "Users/kn"
Just wanted to understand a bit better as to how NImble inherits the environment?
Strange behavior with Atom
Re: Strange behavior with Atom
Okey, the environment variable list as seen in Atom is a lot shorter when started through NC.
Quite a few missing.
Not sure where to start. May be PATH? NC uses its own - shorter version. Where could I set PATH for NC?
How does it inherit one?
The other one is ATOM_DISABLE_SHELLING_OUT_FOR_ENVIRONMENT set to "true" when started through NC. Could I change it somehow?
Quite a few missing.
Not sure where to start. May be PATH? NC uses its own - shorter version. Where could I set PATH for NC?
How does it inherit one?
The other one is ATOM_DISABLE_SHELLING_OUT_FOR_ENVIRONMENT set to "true" when started through NC. Could I change it somehow?
Re: Strange behavior with Atom
Nope, there're no hardcoded usernames in NC.
It copies current environment (in which NC itself works) and restoring it for terminal forks.
I.e. for the fork with a shell and for single-task forks, like external editors running in terminal emulator.
Shorter when compared with what?
On my setup it's actually a bit longer, due to fact it sets a bunch of "LC_*" variables.
In Terminal.app:
Code: Select all
lucyfire:~ migun$ env | wc -l
20
Code: Select all
lucyfire:~ migun$ env | wc -l
25
Hmm, it uses the exact value of PATH provided by system:
Terminal.app:
Code: Select all
lucyfire:~ migun$ env | grep PATH
PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Applications/Server.app/Contents/ServerRoot/usr/bin:/Applications/Server.app/Contents/ServerRoot/usr/sbin
Code: Select all
lucyfire:~ migun$ env | grep PATH
PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Applications/Server.app/Contents/ServerRoot/usr/bin:/Applications/Server.app/Contents/ServerRoot/usr/sbin
Why not just set it globally on system or user level?