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); } }