diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-04-14 01:40:12 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-04-14 01:40:12 +0000 |
commit | 80d75ceaa93ebc4ec7ee9935d2acb4f9cafd0a3b (patch) | |
tree | a1342e02bd686ec83989c2755ddac543b7fffd82 /etc | |
parent | 73aeab3bcea368878d9611c07954c7802b4f853a (diff) | |
download | smartcardauth-80d75ceaa93ebc4ec7ee9935d2acb4f9cafd0a3b.tar.gz smartcardauth-80d75ceaa93ebc4ec7ee9935d2acb4f9cafd0a3b.zip |
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
Diffstat (limited to 'etc')
-rw-r--r-- | etc/smartauth/smartauthmon.sh.in | 3 |
1 files changed, 3 insertions, 0 deletions
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 |