fix: added forget kde compositor suspend check

Signed-off-by: Boris Yumankulov <boria138@altlinux.org>
This commit is contained in:
2025-07-16 16:32:43 +05:00
parent f0265a80c5
commit 4f96e1e16e

View File

@ -4375,7 +4375,10 @@ start_portwine () {
&& ! check_gamescope_session && ! check_gamescope_session
then then
if [[ "${DESKTOP_SESSION}" =~ "plasma" ]] ; then if [[ "${DESKTOP_SESSION}" =~ "plasma" ]] ; then
qdbus org.kde.KWin /Compositor suspend 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 suspend
fi
elif [[ "${DESKTOP_SESSION}" =~ "mate" ]] ; then elif [[ "${DESKTOP_SESSION}" =~ "mate" ]] ; then
gsettings set org.mate.Marco.general compositing-manager false gsettings set org.mate.Marco.general compositing-manager false
elif [[ "${DESKTOP_SESSION}" =~ "xfce" ]] ; then elif [[ "${DESKTOP_SESSION}" =~ "xfce" ]] ; then