If you have the necceasiry rights to use dcop on every computer, you can lock the display with a dcop call. The user can unlock it with a password, but it is possible to make a scripts that checks every second if a screen is unlocked, and lock it again if so. A script could look like:
|
Source code
|
1
2
3
4
5
6
7
|
#!/bin/bash
while[ true ]; do
if [ "`dcop kdesktop KScreensaverIface isEnabled`" != "true" ]; then
dcop kdesktop KScreensaverIface lock
fi
sleep 1
done
|
To unlock it, just terminate the script and the users are able to unlock the screen with there password.