if (process_type == switches::kRendererProcess)
return;
+ // Add a flag to mark the start of switches added by atom-shell.
+ command_line->AppendSwitch("atom-shell-switches-start");
+
// Disable renderer sandbox for most of node's functions.
command_line->AppendSwitch(switches::kNoSandbox);
command_line->AppendSwitch(switches::kDisableAcceleratedCompositing);
// Add a flag to mark the end of switches added by atom-shell.
- command_line->AppendSwitch("no-more-atom-shell-switches");
+ command_line->AppendSwitch("atom-shell-switches-end");
}
void AtomMainDelegate::InitializeResourceBundle() {
app.quit();
});
-// Pick out switches appended by atom-shell.
-var endMark = process.argv.indexOf('--no-more-atom-shell-switches');
-process.execArgv = process.argv.splice(1, endMark)
-
-var argv = optimist(process.argv.slice(1)).argv;
+var argv = optimist(process.argv.slice(1)).boolean('ci').argv;
// Start the specified app if there is one specified in command line, otherwise
// start the default app.
# we need to restore it here.
process.argv.splice 1, 1
+# Pick out switches appended by atom-shell.
+startMark = process.argv.indexOf '--atom-shell-switches-start'
+endMark = process.argv.indexOf '--atom-shell-switches-end'
+process.execArgv = process.argv.splice startMark, endMark - startMark + 1
+
# Add browser/api/lib to require's search paths,
# which contains javascript part of Atom's built-in libraries.
globalPaths = require('module').globalPaths