fallback to VTNR
This commit is contained in:
parent
e3857e0f7a
commit
27a7b04528
@ -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'] :
|
||||
|
Loading…
Reference in New Issue
Block a user