From 22f50e634f9293723cacffb6564e1b7f7e0e0632 Mon Sep 17 00:00:00 2001 From: Dylan Date: Sat, 2 Apr 2016 01:55:31 +1100 Subject: [PATCH] Add KDE support to xprop DE detection --- neofetch | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 3ffc0f1e..c1e40bfc 100755 --- a/neofetch +++ b/neofetch @@ -780,8 +780,12 @@ getde () { # TODO: Add support for all DEs that have xprop values. if [ -z "$de" ]; then - de="$(xprop -root | awk -F '= ' '/KDE_SESSION_VERSION/ {printf $2}')" + de="$(xprop -root | awk '/KDE_SESSION_VERSION|^_MARCO|^_MUFFIN|xfce4|xfce5/')" + case "$de" in + "KDE_SESSION_VERSION"*) de="KDE${de/* = }" ;; + + esac fi }