diff --git a/bin/start.js b/bin/start.js index 087a1a12..f1a3c711 100755 --- a/bin/start.js +++ b/bin/start.js @@ -2,7 +2,7 @@ var cp = require('child_process') -var BIN = '/Applications/Google Chrome Canary.app/Contents/MacOS/Google Chrome Canary' +var BIN = process.platform=='linux' ? '/bin/google-chrome' : '/Applications/Google Chrome Canary.app/Contents/MacOS/Google Chrome Canary'; var ARGS = ['--load-and-launch-app=chrome'] var child = cp.spawn(BIN, ARGS) @@ -11,4 +11,4 @@ var child = cp.spawn(BIN, ARGS) process.once('SIGUSR2', function () { child.kill() process.kill(process.pid, 'SIGUSR2') -}) \ No newline at end of file +})