I don't know if there's a nice and friendly way to do it, but here's my suggestion:
Make a script like this:
|
Source code
|
1
2
3
4
5
6
|
export DISPLAY=:0.0
sleep 1h
kdialog --msgbox "Time to log off"
sleep 5m # Give them 5 minutes to finish their work and log off
# Force log off
dcop kdesktop default logout
|
I haven't checked the latter command, probably a confirmation pops up to log off. You can automate this in the Control Center -> KDE Components -> Session Management.
And create a link to an application in their autostart folder (~/.kde/Autostart), by right clicking in an empty space in Konqueror -> New -> Link to Application. This will execute the script with every login.