[PR] #269 from BKasin: Kinfo for plasma 6

Use kinfo when plasma6 is detected
This commit is contained in:
Azalea 2024-05-03 10:11:15 -04:00 committed by GitHub
commit 770ffb01a5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2546,9 +2546,20 @@ get_de() {
esac
((${KDE_SESSION_VERSION:-0} >= 4)) && de=${de/KDE/Plasma}
((${KDE_SESSION_VERSION:-0} >= 6)) && de=${de/Plasma/Plasma6}
if [[ $de_version == on && $de ]]; then
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*)
de_ver=$(plasmashell --version)
kf_ver=$(kf5-config --version)
@ -2582,7 +2593,7 @@ get_de() {
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
# TODO: