From 9ae6ca348153e65b75b03d8f4e20d52235561494 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Tue, 9 Jul 2024 00:49:09 +0300 Subject: [PATCH] autotests: Force breeze_cursors cursor theme Distros like Fedora don't ship Vanilla-DMZ cursor theme. --- autotests/integration/generic_scene_opengl_test.cpp | 2 +- autotests/integration/pointer_input.cpp | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/autotests/integration/generic_scene_opengl_test.cpp b/autotests/integration/generic_scene_opengl_test.cpp index 23855dfc8a..6e3b6b3fe9 100644 --- a/autotests/integration/generic_scene_opengl_test.cpp +++ b/autotests/integration/generic_scene_opengl_test.cpp @@ -61,7 +61,7 @@ void GenericSceneOpenGLTest::initTestCase() config->sync(); kwinApp()->setConfig(config); - qputenv("XCURSOR_THEME", QByteArrayLiteral("DMZ-White")); + qputenv("XCURSOR_THEME", QByteArrayLiteral("breeze_cursors")); qputenv("XCURSOR_SIZE", QByteArrayLiteral("24")); qputenv("KWIN_COMPOSE", m_envVariable); diff --git a/autotests/integration/pointer_input.cpp b/autotests/integration/pointer_input.cpp index 38eec2db5e..418dc2ce20 100644 --- a/autotests/integration/pointer_input.cpp +++ b/autotests/integration/pointer_input.cpp @@ -122,12 +122,7 @@ void PointerInputTest::initTestCase() kwinApp()->setConfig(KSharedConfig::openConfig(QString(), KConfig::SimpleConfig)); - if (!QStandardPaths::locateAll(QStandardPaths::GenericDataLocation, QStringLiteral("icons/DMZ-White/index.theme")).isEmpty()) { - qputenv("XCURSOR_THEME", QByteArrayLiteral("DMZ-White")); - } else { - // might be vanilla-dmz (e.g. Arch, FreeBSD) - qputenv("XCURSOR_THEME", QByteArrayLiteral("Vanilla-DMZ")); - } + qputenv("XCURSOR_THEME", QByteArrayLiteral("breeze_cursors")); qputenv("XCURSOR_SIZE", QByteArrayLiteral("24")); qputenv("XKB_DEFAULT_RULES", "evdev");