From c834a836565dd643dcdec9d9531bb844d5ae1112 Mon Sep 17 00:00:00 2001 From: chrys Date: Mon, 27 Feb 2017 22:53:40 +0100 Subject: [PATCH] virtual nr bevore device --- src/fenrir/screenDriver/vcsaDriver.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/fenrir/screenDriver/vcsaDriver.py b/src/fenrir/screenDriver/vcsaDriver.py index 6f089840..7216bd37 100644 --- a/src/fenrir/screenDriver/vcsaDriver.py +++ b/src/fenrir/screenDriver/vcsaDriver.py @@ -77,10 +77,11 @@ class driver(): obj = bus.get_object('org.freedesktop.login1', session[4]) inf = dbus.Interface(obj, 'org.freedesktop.DBus.Properties') 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 = str(inf.Get('org.freedesktop.login1.Session', 'VTNr')) + if screen == '': + screen = str(inf.Get('org.freedesktop.login1.Session', 'TTY')) + screen = screen[screen.upper().find('TTY') + 3:] + if sessionType.upper() == 'X11': self.env['screenData']['autoIgnoreScreens'].append(screen) if screen == self.env['screenData']['newTTY'] :