void-packages/srcpkgs/turnstile/files/dbus.run

12 lines
350 B
Plaintext
Raw Normal View History

2023-06-28 11:10:55 +02:00
#!/bin/sh
[ -r ./conf ] && . ./conf
: "${DBUS_SESSION_BUS_ADDRESS:=unix:path=/run/user/$(id -u)/bus}"
if [ -d "$TURNSTILE_ENV_DIR" ]; then
echo "$DBUS_SESSION_BUS_ADDRESS" > "$TURNSTILE_ENV_DIR"/DBUS_SESSION_BUS_ADDRESS
fi
exec chpst -e "$TURNSTILE_ENV_DIR" dbus-daemon --session --nofork --nopidfile --address="$DBUS_SESSION_BUS_ADDRESS" $OPTS