mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-24 12:32:32 +00:00
Only use Plasma instead of KDE, if KDE version is greater equal 4
This commit is contained in:
5
neofetch
5
neofetch
@@ -1516,7 +1516,6 @@ get_de() {
|
||||
de="${XDG_CURRENT_DESKTOP/X\-}"
|
||||
de="${de/Budgie:GNOME/Budgie}"
|
||||
de="${de/:Unity7:ubuntu}"
|
||||
de="${de/KDE/Plasma}"
|
||||
|
||||
elif [[ "$DESKTOP_SESSION" ]]; then
|
||||
de="${DESKTOP_SESSION##*/}"
|
||||
@@ -1531,6 +1530,10 @@ get_de() {
|
||||
de="Trinity"
|
||||
fi
|
||||
|
||||
if [ "$KDE_SESSION_VERSION" -ge "4" ]; then
|
||||
de="${de/KDE/Plasma}"
|
||||
fi
|
||||
|
||||
# When a window manager is started from a display manager
|
||||
# the desktop variables are sometimes also set to the
|
||||
# window manager name. This checks to see if WM == DE
|
||||
|
||||
Reference in New Issue
Block a user