fix(compositor): skip qdbus call on KDE 6 where compositor control is not supported

Signed-off-by: Boris Yumankulov <boria138@altlinux.org>
This commit is contained in:
2025-07-13 11:34:02 +05:00
parent c93f354d61
commit 7b14131d33

View File

@ -2009,7 +2009,10 @@ stop_portwine () {
&& ! check_gamescope_session
then
if [[ "${DESKTOP_SESSION}" =~ "plasma" ]] ; then
kde_version=$(plasmashell --version 2>/dev/null | grep -oE '[0-9]+' | head -1)
if [[ -n "$kde_version" && "$kde_version" -lt 6 ]]; then
qdbus org.kde.KWin /Compositor resume
fi
elif [[ "${DESKTOP_SESSION}" =~ "mate" ]] ; then
gsettings set org.mate.Marco.general compositing-manager true
elif [[ "${DESKTOP_SESSION}" =~ "xfce" ]] ; then