Adding debian version 0.5.0-4.
[debian/lxde-common.git] / debian / patches / 11_ensure-desktop-folder.patch
1 #Upstream: http://lxde.git.sourceforge.net/git/gitweb.cgi?p=lxde/lxde-common;a=commit;h=28309e598478254fa9c918782cf089aea6358abb
2 --- a/startlxde.in
3 +++ b/startlxde.in
4 @@ -25,6 +25,14 @@
5         eval "$(dbus-launch --sh-syntax --exit-with-session)"
6  fi
7  
8 +# Ensure the existance of the 'Desktop' folder
9 +if [ -e "$XDG_CONFIG_HOME/user-dirs.dirs" ]; then
10 +       . "$XDG_CONFIG_HOME/user-dirs.dirs"
11 +else
12 +       XDG_DESKTOP_DIR="$HOME/Desktop"
13 +fi
14 +mkdir -p "$XDG_DESKTOP_DIR"
15 +
16  # Clean up after GDM (GDM sets the number of desktops to one)
17  xprop -root -remove _NET_NUMBER_OF_DESKTOPS -remove _NET_DESKTOP_NAMES -remove _NET_CURRENT_DESKTOP 2> /dev/null
18