acpid: export USER variable
This commit is contained in:
@@ -11,7 +11,7 @@ setspeed="/sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed"
|
|||||||
set $*
|
set $*
|
||||||
|
|
||||||
PID=$(pgrep dbus-launch)
|
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)
|
USERHOME=$(getent passwd $USER | cut -d: -f6)
|
||||||
export XAUTHORITY="$USERHOME/.Xauthority"
|
export XAUTHORITY="$USERHOME/.Xauthority"
|
||||||
for x in /tmp/.X11-unix/*; do
|
for x in /tmp/.X11-unix/*; do
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
# Template file for 'acpid'
|
# Template file for 'acpid'
|
||||||
pkgname=acpid
|
pkgname=acpid
|
||||||
version=2.0.25
|
version=2.0.25
|
||||||
revision=2
|
revision=3
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--sbindir=/usr/bin"
|
configure_args="--sbindir=/usr/bin"
|
||||||
conf_files="/etc/acpi/events/anything /etc/acpi/handler.sh"
|
conf_files="/etc/acpi/events/anything /etc/acpi/handler.sh"
|
||||||
|
|||||||
Reference in New Issue
Block a user