Is it possible to set the ATOM_HOME variable in an argument to the atom command?
I am trying to use the ‘portable’ version of Atom on Windows (the zipped version) and found that I have to set the ATOM_HOME variable to make it truly portable.
Right now I have created a folder called Atom, which then has two folders, ‘app’ and ‘home’.
I then have an atom.bat file with the following commands in it:
set ATOM_HOME=%~dp0\home bin\atom
This works fine for opening atom up and then for any file subsequently opened in Atom using open with.
However if I use open with when Atom is not running the ATOM_HOME variable never gets set because it’s just using the Atom exe file and so Atom then tries to use my home directory for it’s ATOM_HOME variable.
This is a problem, so is there a way to pass the ATOM_HOME value in an argument (so I could edit the target of an Atom exe shortcut) or is it possible to set it in the init file for Atom?