mirror of
git://code.qt.io/qt/qt5.git
synced 2026-01-07 23:46:51 +08:00
Window animations change the physical geometry in relation to the
geometry known in Qt. Windows may not be found by
QGuiApplication::topLevelAt() as expected.
Turn animations off in Linux provisioning.
Task-number: QTBUG-130811
Pick-to: 6.8.1 6.5
Change-Id: Id0fa13f4dd38b21dd141f4b51308903ccaf40bba
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Reviewed-by: Liang Qi <liang.qi@qt.io>
(cherry picked from commit d58d59693a)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
31 lines
1.1 KiB
Bash
Executable File
31 lines
1.1 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# Copyright (C) 2021 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
|
|
|
|
BASEDIR=$(dirname "$0")
|
|
# shellcheck source=../common/shared/network_test_server_ip.txt
|
|
source "$BASEDIR/../common/shared/network_test_server_ip.txt"
|
|
|
|
echo "Disable window animations."
|
|
gsettings set org.gnome.desktop.interface enable-animations false
|
|
echo "Set Network Test Server address to $network_test_server_ip in /etc/hosts"
|
|
echo "$network_test_server_ip qt-test-server qt-test-server.qt-test-net" | sudo tee -a /etc/hosts
|
|
echo "Set DISPLAY"
|
|
echo 'export DISPLAY=":0"' >> ~/.bashrc
|
|
# for current session
|
|
export DISPLAY=:0
|
|
|
|
# Set timezone to UTC.
|
|
sudo timedatectl set-timezone Etc/UTC
|
|
# disable Automatic screen lock
|
|
gsettings set org.gnome.desktop.screensaver lock-enabled false
|
|
# disable blank screen power saving
|
|
gsettings set org.gnome.desktop.session idle-delay 0
|
|
|
|
# Set Wayland enable as false.
|
|
echo "Setting Wayland enable as false"
|
|
sudo sed -i 's/#WaylandEnable=false/WaylandEnable=false/g' /etc/gdm/custom.conf
|
|
|