diff options
author | Axel Spoerl <axel.spoerl@qt.io> | 2023-08-31 13:50:16 +0200 |
---|---|---|
committer | Axel Spoerl <axel.spoerl@qt.io> | 2023-10-31 15:02:39 +0000 |
commit | 6ffc33803162f5f3f5966cd5840c0d8a94dbae1a (patch) | |
tree | d724aac83f1cc583f882f8ead8575838ef5d4811 | |
parent | 07310e454543ca608bc87aa04452db45ba59e19a (diff) |
OpenSuSE: disable kwin overview
The KDE window manager kwin launches window overview, when the mouse
remains in the top left for about 1 second. This causes flakiness in
autotests, if they move the mouse to the top left.
=> Disable the overview function, which is enabled by default.
Change-Id: I43925d15db99f5d40b6cc0cdba39203513e8c59f
Reviewed-by: Toni Saario <toni.saario@qt.io>
(cherry picked from commit 71b55915f02bfe035215494d941fcdb842e22c02)
Reviewed-by: Tero Heikkinen <tero.heikkinen@qt.io>
4 files changed, 64 insertions, 0 deletions
diff --git a/coin/provisioning/common/linux/disable_kwin_overview.sh b/coin/provisioning/common/linux/disable_kwin_overview.sh new file mode 100755 index 00000000..8171c8b1 --- /dev/null +++ b/coin/provisioning/common/linux/disable_kwin_overview.sh @@ -0,0 +1,43 @@ +#!/usr/bin/env bash +# Copyright (C) 2023 The Qt Company Ltd. +# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +set -e +set -f +QT_USER="qt" +CONFDIR=".config" +KWINRC="kwinrc" +KWC5=`which kwriteconfig5` + +if [ -z "$KWC5" ]; then + echo "(WW) kwriteconfig5 script not found." + echo "---- skipping overview disabling." + exit 0; +fi + +echo "---- ensuring window overview is disabled in kwin." + +# skip if user qt does not exist +echo "---- checking user $QT_USER" +if grep -q "^$QT_USER:" /etc/passwd; then + echo "(**) found user $QT_USER" +else + echo "(WW) user $QT_USER not found." + echo "---- skipping overview disabling." + exit 0; +fi + +CONFIGFILE="/home/$QT_USER/$CONFDIR/$KWINRC" + +# Check kwinrc existence +echo "---- checking for kwinrc." +if [ -f "$CONFIGFILE" ]; then + echo "(**) found kwinrc at $CONFIGFILE. Disabling overview." + + $KWC5 --file "$CONFIGFILE" --group Effect-windowview --key BorderActivateAll "9" + $KWC5 --file "$CONFIGFILE" --group Plugins --key windowOverview "false" + +else + echo "(WW) no kwinrc found at $CONFIGFILE." + echo "(WW) exiting." +fi diff --git a/coin/provisioning/qtci-linux-openSUSE-15.3-x86_64/05-disable_kwin_overview.sh b/coin/provisioning/qtci-linux-openSUSE-15.3-x86_64/05-disable_kwin_overview.sh new file mode 100755 index 00000000..f6a3d71c --- /dev/null +++ b/coin/provisioning/qtci-linux-openSUSE-15.3-x86_64/05-disable_kwin_overview.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +# Copyright (C) 2023 The Qt Company Ltd. +# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +set -ex + +"$(dirname "$0")"/../common/linux/disable_kwin_overview.sh diff --git a/coin/provisioning/qtci-linux-openSUSE-15.4-x86_64/05-disable_kwin_overview.sh b/coin/provisioning/qtci-linux-openSUSE-15.4-x86_64/05-disable_kwin_overview.sh new file mode 100755 index 00000000..f6a3d71c --- /dev/null +++ b/coin/provisioning/qtci-linux-openSUSE-15.4-x86_64/05-disable_kwin_overview.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +# Copyright (C) 2023 The Qt Company Ltd. +# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +set -ex + +"$(dirname "$0")"/../common/linux/disable_kwin_overview.sh diff --git a/coin/provisioning/qtci-linux-openSUSE-15.5-x86_64/05-disable_kwin_overview.sh b/coin/provisioning/qtci-linux-openSUSE-15.5-x86_64/05-disable_kwin_overview.sh new file mode 100755 index 00000000..f6a3d71c --- /dev/null +++ b/coin/provisioning/qtci-linux-openSUSE-15.5-x86_64/05-disable_kwin_overview.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +# Copyright (C) 2023 The Qt Company Ltd. +# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +set -ex + +"$(dirname "$0")"/../common/linux/disable_kwin_overview.sh |