autotests: Force breeze_cursors cursor theme

Distros like Fedora don't ship Vanilla-DMZ cursor theme.
wilder/Plasma/6.2
Vlad Zahorodnii 2 years ago
parent 3492f52179
commit 9ae6ca3481
  1. 2
      autotests/integration/generic_scene_opengl_test.cpp
  2. 7
      autotests/integration/pointer_input.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);

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

Loading…
Cancel
Save