Adding debian version 0.5.0-4.
[debian/lxde-common.git] / debian / patches / 10_ensure-dbus-launch.patch
1 # Upstream (http://lxde.git.sourceforge.net/git/gitweb.cgi?p=lxde/lxde-common;a=commit;h=847a8e73e658bb9ced5eb7b12242b0064224f49e
2 --- a/startlxde.in
3 +++ b/startlxde.in
4 @@ -20,6 +20,11 @@
5      cp @prefix@/share/lxde/openbox/rc.xml "$OPENBOX_CONF_DIR/lxde-rc.xml"
6  fi
7  
8 +# Launch DBus if needed
9 +if which dbus-launch >/dev/null && test -z "$DBUS_SESSION_BUS_ADDRESS"; then
10 +       eval "$(dbus-launch --sh-syntax --exit-with-session)"
11 +fi
12 +
13  # Clean up after GDM (GDM sets the number of desktops to one)
14  xprop -root -remove _NET_NUMBER_OF_DESKTOPS -remove _NET_DESKTOP_NAMES -remove _NET_CURRENT_DESKTOP 2> /dev/null
15