virtual nr bevore device

This commit is contained in:
chrys 2017-02-27 22:53:40 +01:00
parent 1d7f9634e7
commit c834a83656

View File

@ -77,10 +77,11 @@ class driver():
obj = bus.get_object('org.freedesktop.login1', session[4]) obj = bus.get_object('org.freedesktop.login1', session[4])
inf = dbus.Interface(obj, 'org.freedesktop.DBus.Properties') inf = dbus.Interface(obj, 'org.freedesktop.DBus.Properties')
sessionType = inf.Get('org.freedesktop.login1.Session', 'Type') sessionType = inf.Get('org.freedesktop.login1.Session', 'Type')
screen = str(inf.Get('org.freedesktop.login1.Session', 'TTY')) screen = str(inf.Get('org.freedesktop.login1.Session', 'VTNr'))
screen = screen[screen.upper().find('TTY') + 3:] if screen == '':
if screen == '': screen = str(inf.Get('org.freedesktop.login1.Session', 'TTY'))
screen = str(inf.Get('org.freedesktop.login1.Session', 'VTNr')) screen = screen[screen.upper().find('TTY') + 3:]
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'] :