Don't assume that user is running MATE if marco wm is detected. ref https://github.com/KittyKatt/screenFetch/issues/287
This commit is contained in:
parent
1460a0adf4
commit
65f8053ede
1 changed files with 1 additions and 2 deletions
3
neofetch
3
neofetch
|
@ -786,13 +786,12 @@ getde () {
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if [ -n "$DISPLAY" ] && [ -z "$de" ]; then
|
if [ -n "$DISPLAY" ] && [ -z "$de" ]; then
|
||||||
de="$(xprop -root | awk '/KDE_SESSION_VERSION|^_MARCO|^_MUFFIN|xfce4|xfce5/' 2>/dev/null)"
|
de="$(xprop -root | awk '/KDE_SESSION_VERSION|^_MUFFIN|xfce4|xfce5/' 2>/dev/null)"
|
||||||
|
|
||||||
case "$de" in
|
case "$de" in
|
||||||
"KDE_SESSION_VERSION"*) de="KDE${de/* = }" ;;
|
"KDE_SESSION_VERSION"*) de="KDE${de/* = }" ;;
|
||||||
*"TDE_FULL_SESSION"*) de="Trinity" ;;
|
*"TDE_FULL_SESSION"*) de="Trinity" ;;
|
||||||
*"MUFFIN"*) de="Cinnamon" ;;
|
*"MUFFIN"*) de="Cinnamon" ;;
|
||||||
*"MARCO"*) de="MATE" ;;
|
|
||||||
*"xfce4"*) de="XFCE4" ;;
|
*"xfce4"*) de="XFCE4" ;;
|
||||||
*"xfce5"*) de="XFCE5" ;;
|
*"xfce5"*) de="XFCE5" ;;
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Reference in a new issue