diff options
author | Timothy Pearson <[email protected]> | 2012-04-27 13:26:04 -0500 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2012-04-27 13:26:04 -0500 |
commit | 22d0a673d7d6049d388847b476df1e5b6f3d6b70 (patch) | |
tree | b6fc0fe18603cf23bfbcf480a169081b11a99beb /kdesktop/lock | |
parent | e899b7beb6b0f2db8c08dfdc14c29efb99046086 (diff) | |
download | tdebase-22d0a673d7d6049d388847b476df1e5b6f3d6b70.tar.gz tdebase-22d0a673d7d6049d388847b476df1e5b6f3d6b70.zip |
Check for tsak presence on lock engage
Fix tsak not exiting on request
Clean up build warnings
Diffstat (limited to 'kdesktop/lock')
-rw-r--r-- | kdesktop/lock/lockprocess.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/kdesktop/lock/lockprocess.cc b/kdesktop/lock/lockprocess.cc index 2b47661db..f33040b85 100644 --- a/kdesktop/lock/lockprocess.cc +++ b/kdesktop/lock/lockprocess.cc @@ -1636,6 +1636,18 @@ bool LockProcess::checkPass() return 0; if (trinity_desktop_lock_use_sak) { + // Verify SAK operational status + KProcess* checkSAKProcess = new KProcess; + *checkSAKProcess << "tdmtsak" << "check"; + checkSAKProcess->start(KProcess::Block, KProcess::NoCommunication); + int retcode = checkSAKProcess->exitStatus(); + delete checkSAKProcess; + if (retcode != 0) { + trinity_desktop_lock_use_sak = false; + } + } + + if (trinity_desktop_lock_use_sak) { // Wait for SAK press before continuing... SAKDlg inDlg( this ); execDialog( &inDlg ); |