summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/dbus/30-dbus
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core-testing/dbus/30-dbus')
-rw-r--r--abs/core-testing/dbus/30-dbus9
1 files changed, 9 insertions, 0 deletions
diff --git a/abs/core-testing/dbus/30-dbus b/abs/core-testing/dbus/30-dbus
new file mode 100644
index 0000000..603e92d
--- /dev/null
+++ b/abs/core-testing/dbus/30-dbus
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+# launches a session dbus instance
+
+dbuslaunch="`which dbus-launch 2>/dev/null`"
+if [ -n "$dbuslaunch" ] && [ -x "$dbuslaunch" ] && [ -z "$DBUS_SESSION_BUS_ADDRESS" ]; then
+ eval `$dbuslaunch --sh-syntax --exit-with-session`
+fi
+