summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-09-23 05:20:41 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-09-23 05:20:41 +0000
commit7358410ead8c3d278fc2a93fca5c6a0f02c5cc33 (patch)
tree20378300f74b06bbde433acc3af5d21752c91280
parentcbe66c290b343f54a6741cb420bac17225d51285 (diff)
downloadsmartcardauth-7358410e.tar.gz
smartcardauth-7358410e.zip
Automatically switch to activating terminal on login with smartcardauth
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/smartcardauth@1255034 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
-rw-r--r--src/smartauthmon.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/smartauthmon.cpp b/src/smartauthmon.cpp
index 88bccee..f2b93df 100644
--- a/src/smartauthmon.cpp
+++ b/src/smartauthmon.cpp
@@ -674,7 +674,7 @@ int main (int argc, char *argv[])
if (newdisplayint == (MAXIMUM_VTS+1)) {
writeerror = true;
systemexec(TRINITY_BIN_PREFIX "kdmctl -g reserve");
- usleep(1000000);
+ usleep(3000000);
}
if (writeerror)
have_valid_display = false;
@@ -685,6 +685,7 @@ int main (int argc, char *argv[])
{
// Could not find any existing kdm sessions; start a new one
systemexec(TRINITY_BIN_PREFIX "kdmctl -g reserve");
+ usleep(3000000);
}
}
@@ -698,6 +699,7 @@ int main (int argc, char *argv[])
printf("Unable to write to KDM control socket %s\n\r", (TQString(KDM_CONTROL_FIFO_FILE).tqarg(newdisplayint)).ascii()); fflush(stdout);
}
+ systemexec((TQString(TRINITY_BIN_PREFIX "kdmctl -g activate %1").tqarg(newdisplay)).ascii());
udisplay=newdisplay;
}