From 19602a921e5cde85f4f989985dd52688ca91bcab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Tue, 3 Nov 2015 16:52:55 +0100 Subject: [PATCH] [wayland] Reset QT_QPA_PLATFORM to wayland after starting Application We only need to force QT_QPA_PLATFORM to be our own plugin when starting the application. As KWin starts other processes (e.g. kcmshell5) we need to ensure that the env variable has a sane value. No other process can load our QPA plugin after all. Reviewed-By: Bhushan Shah --- main_wayland.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main_wayland.cpp b/main_wayland.cpp index 5dc7e9fd12..fc09aa7af9 100644 --- a/main_wayland.cpp +++ b/main_wayland.cpp @@ -380,6 +380,8 @@ int main(int argc, char * argv[]) #endif KWin::ApplicationWayland a(argc, argv); a.setupTranslator(); + // reset QT_QPA_PLATFORM to a sane value for any processes started from KWin + setenv("QT_QPA_PLATFORM", "wayland", true); KWin::Application::createAboutData();