From 1ac90be01d44c3869cea67c3ba556a6f9a549b91 Mon Sep 17 00:00:00 2001 From: Michael Straube Date: Mon, 9 Dec 2019 19:07:05 +0100 Subject: [PATCH] de_version: apply review comments --- neofetch | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/neofetch b/neofetch index b896ce1f..a0339c2b 100755 --- a/neofetch +++ b/neofetch @@ -1592,12 +1592,12 @@ get_de() { # Format strings. case $de in KDE_SESSION_VERSION*) de=KDE${de/* = } ;; - *xfce4*) de=Xfce4 ;; - *xfce5*) de=Xfce5 ;; - *xfce*) de=Xfce ;; - *mate*) de=MATE ;; - *GNOME*) de=GNOME ;; - *MUFFIN*|Cinnamon) de=Cinnamon ;; + *xfce4*) de=Xfce4 ;; + *xfce5*) de=Xfce5 ;; + *xfce*) de=Xfce ;; + *mate*) de=MATE ;; + *GNOME*) de=GNOME ;; + *MUFFIN*) de=Cinnamon ;; esac ((KDE_SESSION_VERSION >= 4)) && de=${de/KDE/Plasma} @@ -1615,6 +1615,7 @@ get_de() { "Lumina"*) de_ver=$(lumina-desktop --version 2>&1) ;; "Trinity"*) de_ver=$(tde-config --version) ;; esac + de_ver=${de_ver/*TDE:} de_ver=${de_ver/tde-config*} de_ver=${de_ver/liblxqt*} @@ -2779,7 +2780,7 @@ get_style() { # Get DE if user has disabled the function. ((de_run != 1)) && get_de - # remove version from $de + # Remove version from '$de'. [[ $de_version == on ]] && de=${de/ *} # Check for DE Theme.