mirror of
https://github.com/dylanaraps/neofetch.git
synced 2026-01-03 14:12:09 +00:00
Add KDE support to xprop DE detection
This commit is contained in:
6
neofetch
6
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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user