Add missing rootAtomFolder var

This commit is contained in:
Kevin Sawicki
2015-02-03 17:02:08 -08:00
parent 76f37277d9
commit 63e618cf74

View File

@@ -84,6 +84,7 @@ setupAtomHome = ->
if SquirrelUpdate.existsSync()
atomPath = path.join(process.env.LOCALAPPDATA, 'atom').toLowerCase()
if __dirname.toLowerCase().indexOf(atomPath) isnt 0
rootAtomFolder = path.resolve(process.execPath, '..', '..')
process.env.ATOM_HOME = path.join(rootAtomFolder, '.atom')
return