Atom shell command not working - edge case!


#1

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

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

‘apm’ runs fine however.


#2

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

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 Atom.app -n --args --executed-from="$(pwd)" --pid=$$ $@

and relying on the open command to find Atom.app. 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.