command_line->AppendSwitch(switches::kDisableAcceleratedCompositing);
// Add a flag to mark the end of switches added by atom-shell.
- command_line->AppendSwitch("no-more-switches");
+ command_line->AppendSwitch("no-more-atom-shell-switches");
}
void AtomMainDelegate::InitializeResourceBundle() {
var app = require('app');
-var dialog = require('dialog');
var path = require('path');
var optimist = require('optimist');
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;
// Start the specified app if there is one specified in command line, otherwise