From 57396031452195e47fe33f6adf7aadf5c1317cf4 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Wed, 5 May 2021 09:15:17 +0300 Subject: [PATCH] autotests: Fix kglobalaccel integration Starting with 48c3376927e5e9c13377bf3cfc8b0c411783e7f3 in kglobalaccel, KGlobalAccel won't work in desktop environments other than Plasma. We need to set XDG_CURRENT_DESKTOP=KDE to ensure that global shortcuts still work. --- autotests/integration/kwin_wayland_test.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/autotests/integration/kwin_wayland_test.cpp b/autotests/integration/kwin_wayland_test.cpp index e2b041f9cc..dad0fa639b 100644 --- a/autotests/integration/kwin_wayland_test.cpp +++ b/autotests/integration/kwin_wayland_test.cpp @@ -51,6 +51,7 @@ WaylandTestApplication::WaylandTestApplication(OperationMode mode, int &argc, ch setUseKActivities(false); #endif qputenv("KWIN_COMPOSE", QByteArrayLiteral("Q")); + qputenv("XDG_CURRENT_DESKTOP", QByteArrayLiteral("KDE")); qunsetenv("XKB_DEFAULT_RULES"); qunsetenv("XKB_DEFAULT_MODEL"); qunsetenv("XKB_DEFAULT_LAYOUT");