aboutsummaryrefslogtreecommitdiff
path: root/void/services/dbus/run
blob: dc7473e45fc52f0034ed3d880e629c26f8704957 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/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