acpid: export USER variable
This commit is contained in:
parent
219ada41db
commit
91be515f10
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue