mirror of
https://github.com/void-linux/void-packages.git
synced 2025-08-04 03:42:56 +02:00
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 $*
|
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"
|
||||||
|
|
Loading…
Add table
Reference in a new issue