diff --git a/resources/win/atom.js b/resources/win/atom.js index d885bad04..e1da9b428 100644 --- a/resources/win/atom.js +++ b/resources/win/atom.js @@ -3,7 +3,7 @@ var spawn = require('child_process').spawn; var atomCommandPath = path.resolve(__dirname, '..', 'atom.exe'); var arguments = process.argv.slice(2); -arguments.push('--executed-from', process.cwd()); +arguments.unshift('--executed-from', process.cwd()); var options = {detached: true, stdio: 'ignore'}; spawn(atomCommandPath, arguments, options); process.exit(0);