--- xdg-su 2012-09-14 20:06:18.547494552 +0100 +++ nmarques.xdg-su 2012-09-14 20:05:47.234886015 +0100 @@ -368,6 +368,9 @@ if [ -n "${XDG_CURRENT_DESKTOP}" ]; then case "${XDG_CURRENT_DESKTOP}" in + MATE) + DE=mate; + ;; GNOME) DE=gnome; ;; @@ -396,6 +399,9 @@ if [ x"$DE" = x"" ]; then # fallback to checking $DESKTOP_SESSION case "$DESKTOP_SESSION" in + mate) + DE=mate; + ;; gnome) DE=gnome; ;; @@ -566,7 +572,7 @@ su_kde ;; - gnome*|lxde) + gnome*|lxde|mate) su_gnome ;;