Change supported platforms of kglobalaccel plugin to "org.kde.kwin"

Overwrite the platform name through the environment variable and ensure
that the plugin is not picked in non-kwin Wayland sessions as that puts
kglobalaccel5 into a crash restart loop.

BUG: 349911
This commit is contained in:
Martin Gräßlin 2015-07-06 04:50:20 +02:00
parent a1a89d3d1e
commit 316914a38b
2 changed files with 2 additions and 1 deletions

View file

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

View file

@ -1,3 +1,3 @@
{
"platforms": ["wayland", "wayland-egl"]
"platforms": ["org.kde.kwin"]
}