From 0a5df640446bf9eea02cff0f17d5399e09efe624 Mon Sep 17 00:00:00 2001 From: Daniel Bayley <daniel.bayley@me.com> Date: Fri, 27 May 2016 19:06:42 +0100 Subject: [PATCH] Add support for alternate app install locations Fixes #2. Thanks to @nerdgore Signed-off-by: Daniel Bayley <daniel.bayley@me.com> --- index.coffee | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/index.coffee b/index.coffee index 170a84f..902cadb 100644 --- a/index.coffee +++ b/index.coffee @@ -1,10 +1,7 @@ {exec} = require 'child_process' -app = '/Applications/GitKraken.app/Contents/MacOS/GitKraken' - module.exports = #os: process.platform - #app: '/Applications/GitKraken.app/Contents/MacOS/GitKraken' #timeout: #timeout: 10000 #killSignal: 'SIGKILL' @@ -20,11 +17,11 @@ module.exports = 'gitkraken:release': => @open() atom.packages.onDidActivateInitialPackages => - @subs.add 'status-bar','click', @selector, @open #mousedown + @subs.add 'status-bar','click', @selector, @open open: -> {path} = atom.project.getDirectories()[0] - exec "#{app} -p '#{path}'" #, @timeout + exec "open -b com.axosoft.GitKraken --args -p '#{path}'" #, @timeout #------------------------------------------------------------------------------- deactivate: -> @subs.dispose() -- GitLab