From 27a7b04528b2a297de34827ce73bcadb7c0f55e2 Mon Sep 17 00:00:00 2001 From: chrys Date: Mon, 27 Feb 2017 22:31:48 +0100 Subject: [PATCH] fallback to VTNR --- src/fenrir/screenDriver/vcsaDriver.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/fenrir/screenDriver/vcsaDriver.py b/src/fenrir/screenDriver/vcsaDriver.py index bfb5f3a5..5c43f884 100644 --- a/src/fenrir/screenDriver/vcsaDriver.py +++ b/src/fenrir/screenDriver/vcsaDriver.py @@ -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'] :