mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-14 21:57:55 +08:00
10 lines
347 B
JavaScript
10 lines
347 B
JavaScript
|
var path = require('path');
|
||
|
var spawn = require('child_process').spawn;
|
||
|
|
||
|
var atomCommandPath = path.resolve(__dirname, '..', '..', 'atom.exe');
|
||
|
var arguments = process.argv.slice(2);
|
||
|
arguments.unshift('--executed-from', process.cwd());
|
||
|
var options = {detached: true, stdio: 'ignore'};
|
||
|
spawn(atomCommandPath, arguments, options);
|
||
|
process.exit(0);
|