From c4a6233acd4fb6ec0d62d95bd6a996f2cb5f79fc Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Mon, 18 May 2015 19:05:11 +0200 Subject: Hardwired path of whoami/id/getent, but we should check all scripts and force PATH in critical ones --- .../modules/idleaction/data/opt/openslx/scripts/idleaction-cron_script | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'remote/modules/idleaction/data') 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) -- cgit v1.2.3-55-g7522