From 4f96e1e16e022144929db140ab73d551411cac4f Mon Sep 17 00:00:00 2001 From: Boris Yumankulov Date: Wed, 16 Jul 2025 16:32:43 +0500 Subject: [PATCH] fix: added forget kde compositor suspend check Signed-off-by: Boris Yumankulov --- data_from_portwine/scripts/functions_helper | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/data_from_portwine/scripts/functions_helper b/data_from_portwine/scripts/functions_helper index 2bd1314e..b8d8880f 100755 --- a/data_from_portwine/scripts/functions_helper +++ b/data_from_portwine/scripts/functions_helper @@ -4375,7 +4375,10 @@ start_portwine () { && ! check_gamescope_session 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 gsettings set org.mate.Marco.general compositing-manager false elif [[ "${DESKTOP_SESSION}" =~ "xfce" ]] ; then