diff --git a/globalshortcuts.cpp b/globalshortcuts.cpp index cf5d9d0997..0e0e64376a 100644 --- a/globalshortcuts.cpp +++ b/globalshortcuts.cpp @@ -115,6 +115,7 @@ GlobalShortcutsManager::~GlobalShortcutsManager() void GlobalShortcutsManager::init() { if (kwinApp()->shouldUseWaylandForCompositing()) { + qputenv("KGLOBALACCELD_PLATFORM", QByteArrayLiteral("org.kde.kwin")); m_kglobalAccel = new KGlobalAccelD(this); if (!m_kglobalAccel->init()) { qCDebug(KWIN_CORE) << "Init of kglobalaccel failed"; diff --git a/plugins/kglobalaccel/kwin.json b/plugins/kglobalaccel/kwin.json index 25655595c8..0a2fc35aca 100644 --- a/plugins/kglobalaccel/kwin.json +++ b/plugins/kglobalaccel/kwin.json @@ -1,3 +1,3 @@ { - "platforms": ["wayland", "wayland-egl"] + "platforms": ["org.kde.kwin"] }