DE: Check {GNOME,MATE}_DESKTOP_SESSION_ID
This commit is contained in:
parent
c3596680c9
commit
101d5c5254
8
neofetch
8
neofetch
|
@ -544,6 +544,12 @@ get_de() {
|
||||||
|
|
||||||
elif [[ "$DESKTOP_SESSION" ]]; then
|
elif [[ "$DESKTOP_SESSION" ]]; then
|
||||||
de="${DESKTOP_SESSION/ *}"
|
de="${DESKTOP_SESSION/ *}"
|
||||||
|
|
||||||
|
elif [[ "$GOME_DESKTOP_SESSION_ID" ]]; then
|
||||||
|
de="GNOME"
|
||||||
|
|
||||||
|
elif [[ "$MATE_DESKTOP_SESSION_ID" ]]; then
|
||||||
|
de="MATE"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
@ -560,7 +566,7 @@ get_de() {
|
||||||
*"xfce4"*) de="XFCE4" ;;
|
*"xfce4"*) de="XFCE4" ;;
|
||||||
*"xfce5"*) de="XFCE5" ;;
|
*"xfce5"*) de="XFCE5" ;;
|
||||||
*"xfce"*) de="XFCE" ;;
|
*"xfce"*) de="XFCE" ;;
|
||||||
*"mate"*) de="MATE"
|
*"mate"*) de="MATE" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# Log that the function was run.
|
# Log that the function was run.
|
||||||
|
|
Reference in New Issue