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
v3.5.13-sru
tpearson 13 years ago
parent cbe66c290b
commit 7358410ead

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

Loading…
Cancel
Save