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.
This commit is contained in:
parent
a0fc0277a7
commit
5739603145
1 changed files with 1 additions and 0 deletions
|
@ -51,6 +51,7 @@ WaylandTestApplication::WaylandTestApplication(OperationMode mode, int &argc, ch
|
||||||
setUseKActivities(false);
|
setUseKActivities(false);
|
||||||
#endif
|
#endif
|
||||||
qputenv("KWIN_COMPOSE", QByteArrayLiteral("Q"));
|
qputenv("KWIN_COMPOSE", QByteArrayLiteral("Q"));
|
||||||
|
qputenv("XDG_CURRENT_DESKTOP", QByteArrayLiteral("KDE"));
|
||||||
qunsetenv("XKB_DEFAULT_RULES");
|
qunsetenv("XKB_DEFAULT_RULES");
|
||||||
qunsetenv("XKB_DEFAULT_MODEL");
|
qunsetenv("XKB_DEFAULT_MODEL");
|
||||||
qunsetenv("XKB_DEFAULT_LAYOUT");
|
qunsetenv("XKB_DEFAULT_LAYOUT");
|
||||||
|
|
Loading…
Reference in a new issue