From cfde63b5f4fd296390077814a4b743fc2c664aac Mon Sep 17 00:00:00 2001 From: Michael Straube Date: Sun, 8 Dec 2019 18:33:50 +0100 Subject: [PATCH] de_version: Add Cinnamon --- neofetch | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/neofetch b/neofetch index 14cf0d55..64ca40a3 100755 --- a/neofetch +++ b/neofetch @@ -1597,21 +1597,18 @@ 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} if [[ $de_version == on && $de ]]; then case $de in - "Plasma"*) de_ver=$(plasmashell --version) ;; - "MATE"*) de_ver=$(mate-session --version) ;; - "Xfce"*) de_ver=$(xfce4-session --version) ;; - "GNOME"*) de_ver=$(gnome-shell --version) ;; + "Plasma"*) de_ver=$(plasmashell --version) ;; + "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/)*}