[PATCH] startkde and dbus-launch

Allen Winter winter at kde.org
Sun Dec 27 15:44:50 GMT 2009


Howdy,

Here's a patch worked up by Thiago and myself for doing DBus autolaunch if
the DBUS_SESSION_BUS_ADDRESS environment variable is unset.

Seems to be working fine for me.

Please review so we can get this into 4.4.
-Allen

Index: startkde.cmake
===================================================================
--- startkde.cmake      (revision 1065636)
+++ startkde.cmake      (working copy)
@@ -337,7 +337,8 @@ if test -z "$XDG_DATA_DIRS"; then
 fi
 # D-Bus autolaunch is broken
 if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then
-    eval `dbus-launch --sh-syntax --exit-with-session`
+    uuid="`dbus-uuidgen --get`"
+    eval `dbus-launch --sh-syntax --exit-with-session --autolaunch $uuid`
 fi
 if qdbus >/dev/null 2>/dev/null; then
     : # ok





More information about the kde-core-devel mailing list