aboutsummaryrefslogtreecommitdiff
path: root/.config/service/dbus/run
diff options
context:
space:
mode:
Diffstat (limited to '.config/service/dbus/run')
-rwxr-xr-x.config/service/dbus/run13
1 files changed, 13 insertions, 0 deletions
diff --git a/.config/service/dbus/run b/.config/service/dbus/run
new file mode 100755
index 0000000..a183643
--- /dev/null
+++ b/.config/service/dbus/run
@@ -0,0 +1,13 @@
+#!/bin/sh
+exec 2>&1
+
+[ -r ./conf ] && . ./conf
+
+: "${DBUS_SESSION_BUS_ADDRESS:=unix:path=${XDG_RUNTIME_DIR:-/run/user/$(id -u)}/bus}"
+. "$HOME/.config/common_service.sh"
+
+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