diff options
| author | Simon Rettberg | 2015-05-18 19:05:11 +0200 |
|---|---|---|
| committer | Simon Rettberg | 2015-05-18 19:05:11 +0200 |
| commit | c4a6233acd4fb6ec0d62d95bd6a996f2cb5f79fc (patch) | |
| tree | 67985b287e2b6573a97698a1d345f3833be9fbf6 /remote/modules/idleaction/data/opt/openslx/scripts | |
| parent | Merge branch 'master' of dnbd3:openslx-ng/tm-scripts (diff) | |
| download | tm-scripts-c4a6233acd4fb6ec0d62d95bd6a996f2cb5f79fc.tar.gz tm-scripts-c4a6233acd4fb6ec0d62d95bd6a996f2cb5f79fc.tar.xz tm-scripts-c4a6233acd4fb6ec0d62d95bd6a996f2cb5f79fc.zip | |
Hardwired path of whoami/id/getent, but we should check all scripts and force PATH in critical ones
Diffstat (limited to 'remote/modules/idleaction/data/opt/openslx/scripts')
| -rwxr-xr-x | remote/modules/idleaction/data/opt/openslx/scripts/idleaction-cron_script | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/remote/modules/idleaction/data/opt/openslx/scripts/idleaction-cron_script b/remote/modules/idleaction/data/opt/openslx/scripts/idleaction-cron_script index ad74def0..17633caa 100755 --- a/remote/modules/idleaction/data/opt/openslx/scripts/idleaction-cron_script +++ b/remote/modules/idleaction/data/opt/openslx/scripts/idleaction-cron_script @@ -28,7 +28,7 @@ if [ -n "${SLX_LOGOUT_TIMEOUT}" ] && [ "${SLX_LOGOUT_TIMEOUT}" -gt 0 ]; then # X11 if [ -n "$DISPLAY" ]; then # Seems to be x11 - USRHOME=$(getent passwd "$NAME" | awk -F ':' '{print $6}') + USRHOME=$(/usr/bin/getent passwd "$NAME" | awk -F ':' '{print $6}') export XAUTHORITY="$USRHOME/.Xauthority" # Now that we have DISPLAY and XAUTHORITY set, xprintidle should work IDLE=$(xprintidle) |
