Browse Source

Fix D-Bus not launching with X server

Frans Bergman 5 years ago
parent
commit
c07ce8b4bc
1 changed files with 7 additions and 0 deletions
  1. 7 0
      .xinitrc

+ 7 - 0
.xinitrc

@@ -11,4 +11,11 @@ xset -dpms
 
 start-pulseaudio-x11 &
 
+# test for an existing bus daemon, just to be safe
+if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then
+    # if not found, launch a new one
+    eval `dbus-launch --sh-syntax --exit-with-session`
+    echo "D-Bus per-session daemon address is: $DBUS_SESSION_BUS_ADDRESS"
+fi
+
 exec dwm