proper fix for GDM and the number of desktops
authorChristoph Wickert <christoph.wickert@googlemail.com>
Thu, 3 Sep 2009 00:34:22 +0000 (00:34 +0000)
committerChristoph Wickert <christoph.wickert@googlemail.com>
Thu, 3 Sep 2009 00:34:22 +0000 (00:34 +0000)
startlxde.in

index 5f9aa13..b5bbb8a 100755 (executable)
@@ -18,6 +18,9 @@ if [ ! -f "$OPENBOX_CONF_DIR/lxde-rc.xml" ]; then
     cp @prefix@/share/lxde/openbox/rc.xml "$OPENBOX_CONF_DIR/lxde-rc.xml"
 fi
 
+# Clean up after GDM (GDM sets the number of desktops to one)
+xprop -root -remove _NET_NUMBER_OF_DESKTOPS -remove _NET_DESKTOP_NAMES -remove _NET_CURRENT_DESKTOP 2> /dev/null
+
 # Enable GTK+2 integration for OpenOffice.org, if available.
 export SAL_USE_VCLPLUGIN=gtk