aboutsummaryrefslogtreecommitdiff
path: root/void/services/dbus
diff options
context:
space:
mode:
Diffstat (limited to 'void/services/dbus')
-rwxr-xr-xvoid/services/dbus/log/run3
-rwxr-xr-xvoid/services/dbus/run11
2 files changed, 14 insertions, 0 deletions
diff --git a/void/services/dbus/log/run b/void/services/dbus/log/run
new file mode 100755
index 0000000..e19b6ec
--- /dev/null
+++ b/void/services/dbus/log/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+exec vlogger -t dbus-$(id -u) -p daemon
diff --git a/void/services/dbus/run b/void/services/dbus/run
new file mode 100755
index 0000000..dc7473e
--- /dev/null
+++ b/void/services/dbus/run
@@ -0,0 +1,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