mirror of
https://github.com/atom/atom.git
synced 2026-01-23 13:58:08 -05:00
Use resource path from atom.getLoadSettings()
This commit is contained in:
@@ -64,11 +64,13 @@ window.unloadEditorWindow = ->
|
||||
windowEventHandler?.unsubscribe()
|
||||
|
||||
installAtomCommand = (callback) ->
|
||||
commandPath = path.join(window.resourcePath, 'atom.sh')
|
||||
{resourcePath} = atom.getLoadSettings()
|
||||
commandPath = path.join(resourcePath, 'atom.sh')
|
||||
require('./command-installer').install(commandPath, callback)
|
||||
|
||||
installApmCommand = (callback) ->
|
||||
commandPath = path.join(window.resourcePath, 'node_modules', '.bin', 'apm')
|
||||
{resourcePath} = atom.getLoadSettings()
|
||||
commandPath = path.join(resourcePath, 'node_modules', '.bin', 'apm')
|
||||
require('./command-installer').install(commandPath, callback)
|
||||
|
||||
window.deserializeEditorWindow = ->
|
||||
|
||||
Reference in New Issue
Block a user