Atom shell command not working - edge case!


Not exactly important to me right now but I installed Atom to ‘/Applications/Development/’ rather than ‘/Applications/’.

Bit of an edge case but when I install the shell commands and then type “atom” I get:
Atom application not found at ‘/Applications/’

‘apm’ runs fine however.


I believe you can resolve this by ensuring ATOM_PATH is set in your shell, something like export ATOM_PATH=/Applications/Development/

I think the shell command could be made a bit more robust by changing line 37 (as of v0.60.0) from

open -a $ATOM_PATH -n --args --executed-from="$(pwd)" --pid=$$ $@

to just

open -a -n --args --executed-from="$(pwd)" --pid=$$ $@

and relying on the open command to find However, I could be wrong, and there might be some merit in being able to open different versions of the app that are installed at the same time.