I added this:
export GNOME_DESKTOP_SESSION_ID=$MATE_DESKTOP_SESSION_ID
and added mate to the detection routine for Gnome and it ***seems*** to work.
I added this:
export GNOME_DESKTOP_ SESSION_ ID=$MATE_ DESKTOP_ SESSION_ ID
and added mate to the detection routine for Gnome and it ***seems*** to work.