Use kinfo when plasma6 is detected

Signed-off-by: Bailey Kasin <baileykasin@gmail.com>
This commit is contained in:
Bailey Kasin 2024-05-02 21:50:58 -07:00
parent e5169705b3
commit 41d767fa4e
No known key found for this signature in database
GPG key ID: 652DB3E919FED665

View file

@ -2546,9 +2546,20 @@ get_de() {
esac esac
((${KDE_SESSION_VERSION:-0} >= 4)) && de=${de/KDE/Plasma} ((${KDE_SESSION_VERSION:-0} >= 4)) && de=${de/KDE/Plasma}
((${KDE_SESSION_VERSION:-0} >= 6)) && de=${de/Plasma/Plasma6}
if [[ $de_version == on && $de ]]; then if [[ $de_version == on && $de ]]; then
case $de in case $de in
Plasma6*)
de_ver=$(plasmashell --version)
kf_ver=$(kinfo)
qt_ver=${kf_ver/Kernel*}
qt_ver=${qt_ver/*:}
qt_ver=$(trim "$qt_ver")
kf_ver=${kf_ver/Qt*}
kf_ver=${kf_ver/*:}
kf_ver=$(trim "$kf_ver")
;;
Plasma*) Plasma*)
de_ver=$(plasmashell --version) de_ver=$(plasmashell --version)
kf_ver=$(kf5-config --version) kf_ver=$(kf5-config --version)
@ -2582,7 +2593,7 @@ get_de() {
de+=" $de_ver" de+=" $de_ver"
[[ $de == "Plasma"* ]] && de+=" [KF5 $kf_ver] [Qt $qt_ver]" [[ $de == "Plasma"* ]] && de="Plasma $de_ver [KF $kf_ver] [Qt $qt_ver]"
fi fi
# TODO: # TODO: