DE: Print Cinnamon version, closes #494
This commit is contained in:
parent
e357203c5f
commit
3b4a1864bd
19
neofetch
19
neofetch
|
@ -552,17 +552,18 @@ get_de() {
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if [[ -n "$DISPLAY" && -z "$de" ]]; then
|
# Fallback to using xprop.
|
||||||
|
[[ -n "$DISPLAY" && -z "$de" ]] && \
|
||||||
de="$(xprop -root | awk '/KDE_SESSION_VERSION|^_MUFFIN|xfce4|xfce5/')"
|
de="$(xprop -root | awk '/KDE_SESSION_VERSION|^_MUFFIN|xfce4|xfce5/')"
|
||||||
|
|
||||||
case "$de" in
|
# Format strings
|
||||||
"KDE_SESSION_VERSION"*) de="KDE${de/* = }" ;;
|
case "$de" in
|
||||||
*"TDE_FULL_SESSION"*) de="Trinity" ;;
|
"KDE_SESSION_VERSION"*) de="KDE${de/* = }" ;;
|
||||||
*"MUFFIN"*) de="$(cinnamon --version)"; de="${de:-Cinnamon}" ;;
|
*"TDE_FULL_SESSION"*) de="Trinity" ;;
|
||||||
*"xfce4"*) de="XFCE4" ;;
|
*"MUFFIN"* | "Cinnamon") de="$(cinnamon --version)"; de="${de:-Cinnamon}" ;;
|
||||||
*"xfce5"*) de="XFCE5" ;;
|
*"xfce4"*) de="XFCE4" ;;
|
||||||
esac
|
*"xfce5"*) de="XFCE5" ;;
|
||||||
fi
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
get_wm() {
|
get_wm() {
|
||||||
|
|
Reference in New Issue