diff options
author | Simon Rettberg | 2017-12-01 17:56:41 +0100 |
---|---|---|
committer | Simon Rettberg | 2017-12-01 17:56:41 +0100 |
commit | 8c2c657692ec1109d72ebc104d65b916c619fdba (patch) | |
tree | ea813ae1f13a2e067dfdd4ed7ef1567aafb21eb1 /core/modules/idleaction | |
parent | [hardware-stats] Sanity checks (diff) | |
download | mltk-8c2c657692ec1109d72ebc104d65b916c619fdba.tar.gz mltk-8c2c657692ec1109d72ebc104d65b916c619fdba.tar.xz mltk-8c2c657692ec1109d72ebc104d65b916c619fdba.zip |
[idleaction] Fix detection of X sessions for warnings
Diffstat (limited to 'core/modules/idleaction')
-rwxr-xr-x | core/modules/idleaction/data/opt/openslx/scripts/idleaction-scheduled_action | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/idleaction/data/opt/openslx/scripts/idleaction-scheduled_action b/core/modules/idleaction/data/opt/openslx/scripts/idleaction-scheduled_action index 68920709..57ffcc04 100755 --- a/core/modules/idleaction/data/opt/openslx/scripts/idleaction-scheduled_action +++ b/core/modules/idleaction/data/opt/openslx/scripts/idleaction-scheduled_action @@ -86,7 +86,7 @@ runaction () { MESSAGE="Dieser Rechner wird in $MINUTES Minute(n) abgeschaltet, bitte beenden Sie Ihre Sitzung. The system will power off in $MINUTES minute(s). Please save your work and end the session." fi - for d in $(who | awk '{print $2}' | sort -u); do + for d in $(who | awk '{print $2 " " $NF}' | sort -u); do if [ "${d:0:1}" = ":" ]; then # X11 export DISPLAY=$d |