autotests: Force breeze_cursors cursor theme

Distros like Fedora don't ship Vanilla-DMZ cursor theme.
This commit is contained in:
Vlad Zahorodnii 2024-07-09 00:49:09 +03:00
parent 3492f52179
commit 9ae6ca3481
2 changed files with 2 additions and 7 deletions

View file

@ -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);

View file

@ -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");