From 80d75ceaa93ebc4ec7ee9935d2acb4f9cafd0a3b Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 14 Apr 2010 01:40:12 +0000 Subject: [PATCH] Hopefully fixed screensaver start while logged in problem git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/smartcardauth@1114577 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- etc/smartauth/smartauthmon.sh.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/etc/smartauth/smartauthmon.sh.in b/etc/smartauth/smartauthmon.sh.in index 553cb4d..252aae5 100644 --- a/etc/smartauth/smartauthmon.sh.in +++ b/etc/smartauth/smartauthmon.sh.in @@ -376,6 +376,7 @@ while [[ 1 == 1 ]]; do udisplay=":${index}" if [[ $lverify == $cverify ]]; then su $smartcard_username -c "export DISPLAY=$udisplay; /opt/kde3/bin/dcop kdesktop KScreensaverIface quit" + su $smartcard_username -c "export DISPLAY=$udisplay; /opt/kde3/bin/dcop kdesktop KScreensaverIface enable false" /opt/kde3/bin/kdmctl activate $udisplay else echo "EUnauthorized SmartCard Inserted" > /tmp/ksocket-global/kdesktoplockcontrol & @@ -467,6 +468,7 @@ while [[ 1 == 1 ]]; do while [[ $OUTPUT -eq 0 ]]; do sleep 1 su $smartcard_username -c "export DISPLAY=$udisplay; /opt/kde3/bin/dcop kdesktop KScreensaverIface quit" + su $smartcard_username -c "export DISPLAY=$udisplay; /opt/kde3/bin/dcop kdesktop KScreensaverIface enable false" echo "exit" | scriptor 2>/dev/null 1>/dev/null OUTPUT=$? if [[ $smartcard_slave == "SLAVE" ]]; then @@ -586,6 +588,7 @@ while [[ 1 == 1 ]]; do blankresult="" while [[ $blankresult != "true" ]]; do /opt/kde3/bin/kdmctl -g activate $udisplay + su $smartcard_username -c "export DISPLAY=$udisplay; /opt/kde3/bin/dcop kdesktop KScreensaverIface enable true" su $smartcard_username -c "export DISPLAY=$udisplay; /opt/kde3/bin/dcop kdesktop KScreensaverIface lock" blankresult=$(su $smartcard_username -c "export DISPLAY=$udisplay; /opt/kde3/bin/dcop kdesktop KScreensaverIface isBlanked") if [[ $? != 0 ]]; then