From 2a5f3937128cbdd9a85d7ac205ca669ea17fb7a0 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Thu, 21 Nov 2013 16:32:12 -0800 Subject: [PATCH] Use resource path from atom.getLoadSettings() --- src/window.coffee | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/window.coffee b/src/window.coffee index e8f50d644..2da308cfd 100644 --- a/src/window.coffee +++ b/src/window.coffee @@ -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 = ->