summaryrefslogtreecommitdiff
path: root/testing/dbus/30-dbus
diff options
context:
space:
mode:
authorroot <root@rshg047.dnsready.net>2011-06-25 23:07:08 +0000
committerroot <root@rshg047.dnsready.net>2011-06-25 23:07:08 +0000
commit8999fa1750304fb2367fb7743e49e013405e88be (patch)
tree6d7215ded2da992cde7f24d17c16ff3288deeaf6 /testing/dbus/30-dbus
parent71f58605e914de11f3a9b7cc2f27b0c52fb8d4ba (diff)
Sat Jun 25 23:07:08 UTC 2011
Diffstat (limited to 'testing/dbus/30-dbus')
-rw-r--r--testing/dbus/30-dbus9
1 files changed, 9 insertions, 0 deletions
diff --git a/testing/dbus/30-dbus b/testing/dbus/30-dbus
new file mode 100644
index 000000000..603e92d3e
--- /dev/null
+++ b/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
+