Only use Plasma instead of KDE, if KDE version is greater equal 4

parent e4dffc46
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment