From 48cf3058c5543a65026cb1cc9d8fc7450c4ccc68 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 1 Oct 2015 03:29:59 -0500 Subject: Move VT switch on card insertion to cryptocardwatcher process --- tdm/cryptocardwatcher/watcher.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tdm') diff --git a/tdm/cryptocardwatcher/watcher.cc b/tdm/cryptocardwatcher/watcher.cc index 021f59949..ecd4e8f3c 100644 --- a/tdm/cryptocardwatcher/watcher.cc +++ b/tdm/cryptocardwatcher/watcher.cc @@ -66,6 +66,10 @@ void CardWatcher::cryptographicCardInserted(TDECryptographicCardDevice* cdevice) if (user.startsWith(login_name + ": ")) { // Found active session user_active = true; + + // Switch VTs + DM().switchVT((*it).vt); + break; } if (user == "Unused") { -- cgit v1.2.3