Fixes and improvements for power/logout handling.
This commit is contained in:
parent
f7eba29ba4
commit
51cb0a2804
2 changed files with 13 additions and 2 deletions
|
@ -30,7 +30,7 @@ if ! t=$(talk2dbus qdbus org.kde.screensaver /ScreenSaver GetActiveTime) ; then
|
|||
echo "No graphical logins found."
|
||||
else
|
||||
idle=$(( t / 1000 ))
|
||||
if [[ $idle -gt $maxidle ]] ; then
|
||||
if [[ $idle -gt $maxidle ]] && [[ ! -d "/srv/samba/schools/default-school/teachers/" ]] ; then
|
||||
talk2dbus notify-send -i system-shutdown -u critical -a 'Important System Information' \
|
||||
'Please log out, the system will shut down soon!' \
|
||||
'There has been no activity for too long.'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue