diff --git a/index.coffee b/index.coffee index 170a84fd8ab0539fd31239d0459c4250028131b7..902cadb4b797660659c724432a1c0081446071c0 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()