summaryrefslogtreecommitdiffstats
path: root/base/dbus/80-dbus
diff options
context:
space:
mode:
authorsibel <lesibel@free.fr>2011-04-19 07:49:06 +0200
committersibel <lesibel@free.fr>2011-04-19 07:49:06 +0200
commite16d633dbf61aa3fb83d42a7e09bb9897954c9be (patch)
tree149a0c82b19c6bf2316015fc8463a105275b04bd /base/dbus/80-dbus
parent059ec0a6c2e9c57804795191141c2894e3c146d7 (diff)
downloadnutyx-pakxe-e16d633dbf61aa3fb83d42a7e09bb9897954c9be.tar.gz
nutyx-pakxe-e16d633dbf61aa3fb83d42a7e09bb9897954c9be.tar.bz2
nutyx-pakxe-e16d633dbf61aa3fb83d42a7e09bb9897954c9be.tar.xz
nutyx-pakxe-e16d633dbf61aa3fb83d42a7e09bb9897954c9be.zip
dbus, maj 1.4.8
Diffstat (limited to 'base/dbus/80-dbus')
-rw-r--r--base/dbus/80-dbus12
1 files changed, 12 insertions, 0 deletions
diff --git a/base/dbus/80-dbus b/base/dbus/80-dbus
new file mode 100644
index 000000000..676d99551
--- /dev/null
+++ b/base/dbus/80-dbus
@@ -0,0 +1,12 @@
+#!/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
+ if [ -n "$command" ]; then
+ command="$dbuslaunch --exit-with-session $command"
+ else
+ eval `$dbuslaunch --sh-syntax --exit-with-session`
+ fi
+fi