Skip to content
Snippets Groups Projects
Commit 0a5df640 authored by Daniel Bayley's avatar Daniel Bayley
Browse files

Add support for alternate app install locations


Fixes #2. Thanks to @nerdgore

Signed-off-by: default avatarDaniel Bayley <daniel.bayley@me.com>
parent 89c50399
No related branches found
No related tags found
No related merge requests found
{exec} = require 'child_process' {exec} = require 'child_process'
app = '/Applications/GitKraken.app/Contents/MacOS/GitKraken'
module.exports = module.exports =
#os: process.platform #os: process.platform
#app: '/Applications/GitKraken.app/Contents/MacOS/GitKraken'
#timeout: #timeout:
#timeout: 10000 #timeout: 10000
#killSignal: 'SIGKILL' #killSignal: 'SIGKILL'
...@@ -20,11 +17,11 @@ module.exports = ...@@ -20,11 +17,11 @@ module.exports =
'gitkraken:release': => @open() 'gitkraken:release': => @open()
atom.packages.onDidActivateInitialPackages => atom.packages.onDidActivateInitialPackages =>
@subs.add 'status-bar','click', @selector, @open #mousedown @subs.add 'status-bar','click', @selector, @open
open: -> open: ->
{path} = atom.project.getDirectories()[0] {path} = atom.project.getDirectories()[0]
exec "#{app} -p '#{path}'" #, @timeout exec "open -b com.axosoft.GitKraken --args -p '#{path}'" #, @timeout
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
deactivate: -> @subs.dispose() deactivate: -> @subs.dispose()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment