main: add -b / --blank cli option to start with a blank session

This commit is contained in:
jean-emmanuel 2016-12-06 09:51:04 +01:00
parent 5ef92b9c50
commit b7910411bd
2 changed files with 11 additions and 2 deletions

View file

@ -11,8 +11,15 @@ module.exports = {
ipc.send('connected')
if (settings.read('theme')) ipc.send('applyStyle',settings.read('theme'),clientId)
if (settings.read('sessionFile')) this.sessionOpen({path:settings.read('sessionFile')},clientId)
var recentSessions = settings.read('recentSessions')
if (settings.read('newSession')) {
ipc.send('sessionNew')
return
}
if (settings.read('sessionFile')) this.sessionOpen({path:settings.read('sessionFile')},clientId)
var recentSessions = settings.read('recentSessions')
if (settings.read('examples')) {
var dir = path.resolve(__dirname + '/../examples')