diff --git a/startlxde.in b/startlxde.in index fd20816..692965c 100755 --- a/startlxde.in +++ b/startlxde.in @@ -41,6 +41,16 @@ if which dbus-launch >/dev/null && test -z "$DBUS_SESSION_BUS_ADDRESS"; then fi export XDG_MENU_PREFIX="lxde-" + +# Since shared-mime-info-0.90-alt3 XDG_DATA_DIRS not exported. We need to define +# the set of base directories explicitly. +if [ -n "$XDG_DATA_DIRS" ]; then + XDG_DATA_DIRS="/usr/share/lxde:$XDG_DATA_DIRS" +else + XDG_DATA_DIRS="/usr/share/lxde:/usr/share:/usr/local/share" +fi +export XDG_DATA_DIRS + export XDG_CURRENT_DESKTOP="LXDE" # Start the LXDE session