diff options
author | Simon Rettberg | 2018-10-12 16:31:47 +0200 |
---|---|---|
committer | Simon Rettberg | 2018-10-12 16:31:47 +0200 |
commit | 7ffcaefbe9dcf6f3e72ed0302f7764a61cc433a4 (patch) | |
tree | ebbf6767825702a0b5e05c807ab59d39f9976532 /core/modules | |
parent | [lightdm] TimeoutStopSec=10 (diff) | |
download | mltk-7ffcaefbe9dcf6f3e72ed0302f7764a61cc433a4.tar.gz mltk-7ffcaefbe9dcf6f3e72ed0302f7764a61cc433a4.tar.xz mltk-7ffcaefbe9dcf6f3e72ed0302f7764a61cc433a4.zip |
[idleaction] Move idle-file to /run/openslx/...
Diffstat (limited to 'core/modules')
-rwxr-xr-x | core/modules/idleaction/data/opt/openslx/scripts/idleaction-cron_script | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/modules/idleaction/data/opt/openslx/scripts/idleaction-cron_script b/core/modules/idleaction/data/opt/openslx/scripts/idleaction-cron_script index df1e8f0d..f40ffa34 100755 --- a/core/modules/idleaction/data/opt/openslx/scripts/idleaction-cron_script +++ b/core/modules/idleaction/data/opt/openslx/scripts/idleaction-cron_script @@ -85,7 +85,7 @@ if [ -n "${SLX_LOGOUT_TIMEOUT}" ] && [ "${SLX_LOGOUT_TIMEOUT}" -gt 0 ]; then fi # Now consider locking - if the screen is locked, we don't want to consider the current idle time, but # the idle time of when the screen was locked - look it up and if not found, write current value - RUNFILE="/run/idleaction-$DISPLAY" + RUNFILE="/run/openslx/idleaction-$DISPLAY" [ -f "$RUNFILE" ] || gen_runfile > "$RUNFILE" OLDLOCKTIME=$(awk -F= '{if ($1 == "lockTime") { print $2; exit } }' "$RUNFILE") [ -z "$OLDLOCKTIME" ] && OLDLOCKTIME=0 @@ -164,6 +164,7 @@ else [ ! -e "$IDLEHINT" ] && echo "$NOW" > "$IDLEHINT" else rm -f -- "$IDLEHINT" + gen_runfile > "/run/openslx/idleaction-:0" # hard-code for primary X session fi fi fi |