if nothing is found log it

This commit is contained in:
chrys 2017-02-27 22:57:14 +01:00
parent c834a83656
commit b895cbf0b3

View File

@ -81,7 +81,9 @@ class driver():
if screen == '': if screen == '':
screen = str(inf.Get('org.freedesktop.login1.Session', 'TTY')) screen = str(inf.Get('org.freedesktop.login1.Session', 'TTY'))
screen = screen[screen.upper().find('TTY') + 3:] screen = screen[screen.upper().find('TTY') + 3:]
if screen == '':
self.env['runtime']['debug'].writeDebugOut('No TTY found for session:' + session[4],debug.debugLevel.ERROR)
return
if sessionType.upper() == 'X11': if sessionType.upper() == 'X11':
self.env['screenData']['autoIgnoreScreens'].append(screen) self.env['screenData']['autoIgnoreScreens'].append(screen)
if screen == self.env['screenData']['newTTY'] : if screen == self.env['screenData']['newTTY'] :