headless: -l switch duplicate session opening fixed

local preset loading
This commit is contained in:
jean-emmanuel 2015-10-30 11:33:35 +01:00
parent b10b910ca0
commit 38bb0505f5
3 changed files with 29 additions and 15 deletions

View file

@ -242,7 +242,7 @@ ipc.on('fullscreen', function(event){
var callbacks = {}
callbacks.ready = function(data,clientId) {
if (settings.read('sessionFile')) callbacks.openSession(settings.read('sessionFile'))
if (settings.read('sessionFile')) callbacks.openSession(settings.read('sessionFile'),clientId)
var recentSessions = settings.read('recentSessions')
ipc.send('listSessions',recentSessions,clientId)
}