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:
@ -2009,7 +2009,10 @@ stop_portwine () {
|
|||||||
&& ! check_gamescope_session
|
&& ! check_gamescope_session
|
||||||
then
|
then
|
||||||
if [[ "${DESKTOP_SESSION}" =~ "plasma" ]] ; then
|
if [[ "${DESKTOP_SESSION}" =~ "plasma" ]] ; then
|
||||||
qdbus org.kde.KWin /Compositor resume
|
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
|
elif [[ "${DESKTOP_SESSION}" =~ "mate" ]] ; then
|
||||||
gsettings set org.mate.Marco.general compositing-manager true
|
gsettings set org.mate.Marco.general compositing-manager true
|
||||||
elif [[ "${DESKTOP_SESSION}" =~ "xfce" ]] ; then
|
elif [[ "${DESKTOP_SESSION}" =~ "xfce" ]] ; then
|
||||||
|
Reference in New Issue
Block a user