From 6cbb68bb104e86c26cdc310b018fa6439e842db3 Mon Sep 17 00:00:00 2001 From: tpearson Date: Mon, 24 Oct 2011 00:06:26 +0000 Subject: [PATCH] Attempt to fix failure to logon if smart card is inserted during system startup git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/smartcardauth@1260425 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- src/smartauthmon.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/smartauthmon.cpp b/src/smartauthmon.cpp index f2b93df..a5aaebf 100644 --- a/src/smartauthmon.cpp +++ b/src/smartauthmon.cpp @@ -683,9 +683,9 @@ int main (int argc, char *argv[]) } else { - // Could not find any existing kdm sessions; start a new one - systemexec(TRINITY_BIN_PREFIX "kdmctl -g reserve"); - usleep(3000000); + // KDM is probably not running yet, as its control directory does not exist + // Wait for 10 seconds and try again + usleep(10000000); } }