From 28309e598478254fa9c918782cf089aea6358abb Mon Sep 17 00:00:00 2001 From: Christoph Wickert <christoph.wickert@googlemail.com> Date: Mon, 18 Jan 2010 00:42:06 +0000 Subject: [PATCH 3/9] Ensure the existance of the 'Desktop' folder --- startlxde.in | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/startlxde.in b/startlxde.in index 31593a0..db2f2ee 100755 --- a/startlxde.in +++ b/startlxde.in @@ -18,6 +18,14 @@ if [ ! -f "$OPENBOX_CONF_DIR/lxde-rc.xml" ]; then cp @prefix@/share/lxde/openbox/rc.xml "$OPENBOX_CONF_DIR/lxde-rc.xml" fi +# Ensure the existance of the 'Desktop' folder +if [ -e "$XDG_CONFIG_HOME/user-dirs.dirs" ]; then + . "$XDG_CONFIG_HOME/user-dirs.dirs" +else + XDG_DESKTOP_DIR="$HOME/Desktop" +fi +mkdir -p "$XDG_DESKTOP_DIR" + # 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 -- 1.6.6.1