> To be more rigorous, use
> elif [ x"$MATE_DESKTOP_SESSION_ID" != x"" ]; then DE=mate;
Trouble with that is that the case statement following the call to detectDE doesn't have a case for mate, so it falls into the "unknown desktop environment" case.
> To be more rigorous, use DESKTOP_ SESSION_ ID" != x"" ]; then DE=mate;
> elif [ x"$MATE_
Trouble with that is that the case statement following the call to detectDE doesn't have a case for mate, so it falls into the "unknown desktop environment" case.