mirror of
https://github.com/atom/atom.git
synced 2026-01-23 13:58:08 -05:00
Add 'home' argument to app.getPath()
This commit is contained in:
@@ -59,7 +59,7 @@ setupCrashReporter = ->
|
||||
setupAtomHome = ({setPortable}) ->
|
||||
return if process.env.ATOM_HOME
|
||||
|
||||
atomHome = path.join(app.getPath(), '.atom')
|
||||
atomHome = path.join(app.getPath('home'), '.atom')
|
||||
AtomPortable = require './atom-portable'
|
||||
|
||||
if setPortable and not AtomPortable.isPortableInstall(process.platform, process.env.ATOM_HOME, atomHome)
|
||||
@@ -142,7 +142,7 @@ parseCommandLine = ->
|
||||
socketPath = args['socket-path']
|
||||
profileStartup = args['profile-startup']
|
||||
urlsToOpen = []
|
||||
devResourcePath = process.env.ATOM_DEV_RESOURCE_PATH ? path.join(app.getPath(), 'github', 'atom')
|
||||
devResourcePath = process.env.ATOM_DEV_RESOURCE_PATH ? path.join(app.getPath('home'), 'github', 'atom')
|
||||
setPortable = args.portable
|
||||
|
||||
if args['resource-path']
|
||||
|
||||
Reference in New Issue
Block a user