fallback to VTNR

This commit is contained in:
chrys 2017-02-27 22:31:48 +01:00
parent e3857e0f7a
commit 27a7b04528

View File

@ -79,6 +79,9 @@ class driver():
sessionType = inf.Get('org.freedesktop.login1.Session', 'Type')
screen = str(inf.Get('org.freedesktop.login1.Session', 'TTY'))
screen = screen[screen.upper().find('TTY') + 3:]
if screen == '':
screen = str(inf.Get('org.freedesktop.login1.Session', 'VTNR'))
screen = screen[screen.upper().find('VC') + 2:]
if sessionType.upper() == 'X11':
self.env['screenData']['autoIgnoreScreens'].append(screen)
if screen == self.env['screenData']['newTTY'] :