de_version: Add Cinnamon

This commit is contained in:
Michael Straube 2019-12-08 18:33:50 +01:00
parent 22d1071d57
commit cfde63b5f4
1 changed files with 6 additions and 9 deletions

View File

@ -1597,11 +1597,7 @@ get_de() {
*xfce*) de=Xfce ;;
*mate*) de=MATE ;;
*GNOME*) de=GNOME ;;
*MUFFIN*|Cinnamon)
de=$(cinnamon --version)
de=${de:-Cinnamon}
;;
*MUFFIN*|Cinnamon) de=Cinnamon ;;
esac
((KDE_SESSION_VERSION >= 4)) && de=${de/KDE/Plasma}
@ -1612,6 +1608,7 @@ get_de() {
"MATE"*) de_ver=$(mate-session --version) ;;
"Xfce"*) de_ver=$(xfce4-session --version) ;;
"GNOME"*) de_ver=$(gnome-shell --version) ;;
"Cinnamon"*) de_ver=$(cinnamon --version) ;;
# TODO: Add other DEs
esac
de_ver=${de_ver/)*}