summaryrefslogtreecommitdiff
path: root/testing/dbus/30-dbus
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@kiwwwi.com.ar>2012-04-07 23:19:36 -0300
committerNicolás Reynolds <fauno@kiwwwi.com.ar>2012-04-07 23:19:36 -0300
commita73dd5c830228a85fc975c4c4434b796e9e7858b (patch)
treea4b5b938456b2a4cc3045a8b8d4fd3117b9277db /testing/dbus/30-dbus
parent3b4c5929151db9bc1ea2e2e4f4ad22fed88a1a34 (diff)
parent37e364f033ed6db243d6db524075d8c5394c90f9 (diff)
Merge branch 'master' of ssh://vparabola/home/parabola/abslibre-pre-mips64el
Conflicts: community/gnustep-make/PKGBUILD extra/foomatic/PKGBUILD extra/gnutls/PKGBUILD libre/gstreamer0.10-bad-libre/PKGBUILD multilib/lib32-gnutls/PKGBUILD staging/libreoffice/PKGBUILD testing/udev/PKGBUILD
Diffstat (limited to 'testing/dbus/30-dbus')
-rw-r--r--testing/dbus/30-dbus8
1 files changed, 8 insertions, 0 deletions
diff --git a/testing/dbus/30-dbus b/testing/dbus/30-dbus
new file mode 100644
index 000000000..69d2660da
--- /dev/null
+++ b/testing/dbus/30-dbus
@@ -0,0 +1,8 @@
+#!/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