diff --git a/srcpkgs/acpid/files/handler.sh b/srcpkgs/acpid/files/handler.sh index c1ea64ec59..c2a12be13b 100644 --- a/srcpkgs/acpid/files/handler.sh +++ b/srcpkgs/acpid/files/handler.sh @@ -11,7 +11,7 @@ setspeed="/sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed" set $* PID=$(pgrep dbus-launch) -USER=$(ps -o user --no-headers $PID) +export USER=$(ps -o user --no-headers $PID) USERHOME=$(getent passwd $USER | cut -d: -f6) export XAUTHORITY="$USERHOME/.Xauthority" for x in /tmp/.X11-unix/*; do diff --git a/srcpkgs/acpid/template b/srcpkgs/acpid/template index 38f610967b..d3d4d9a7d7 100644 --- a/srcpkgs/acpid/template +++ b/srcpkgs/acpid/template @@ -1,7 +1,7 @@ # Template file for 'acpid' pkgname=acpid version=2.0.25 -revision=2 +revision=3 build_style=gnu-configure configure_args="--sbindir=/usr/bin" conf_files="/etc/acpi/events/anything /etc/acpi/handler.sh"