Problem This patch is needed because node-gyp doesn't work with a space in Atom Beta.app -> renamed to Atom-Beta.app. This error occurs:
Cannot locate Atom.app, it is usually located in /Applications. Set the ATOM_PATH environment variable to the directory containing Atom.app.
Use case Developers/others want to multiple versions of Atom side-by-side.
Solution When launched from a Mac .app, a valid, symlinked atom.sh -> atom/atom-beta will always be contained in it's .app. This also works when a different atom-something symlink points to another atom.sh in an .app.
atom.sh: fix for renamed .app
Needed because `node-gyp` doesn't work with a space in `Atom Beta.app`, and developers/others want to multiple versions of Atom side-by-side.
5 4 3 2 1 0
atom.sh: fix direct execute
I tried the scenario above on current beta and wasn't able to see the error you're seeing. could this possibly be fixed already or maybe I'm doing something wrong? Here's a gif of my repro.
Ah, I was finally able to repro this issue. it's when you open atom from the terminal. I'll test your pr later today and see if it fixes the issue.
I was able to build and test his changes on beta build.