dotconfig/dot_config/service/dbus/executable_run
Hendrik Boll 07786e22f9
runit: configure services with turnstile
enable dbus (user-session), pipewire, pipewire-pulse, syncthing
2025-03-16 16:02:48 +01:00

11 lines
350 B
Bash

#!/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