Commit f05a7c0e authored by Nicolas Fella's avatar Nicolas Fella Committed by Vlad Zahorodnii
Browse files

Don't force QT_QPA_PLATFORM=wayland

We're setting this env variable because earlier we used it to force kwin to use its special QPA so we need to change that back to something sensible.

However setting it to Wayland breaks apps that ship their own Qt with missing or broken Wayland support.

Set it to be empty instead. Well-behaved Qt apps will use Wayland regardless because of XDG_SESSION_TYPE.

BUG: 450000


(cherry picked from commit 77ec43d5)
parent ee65fb3d
Pipeline #136467 passed with stage
in 15 minutes and 8 seconds
......@@ -388,8 +388,8 @@ int main(int argc, char * argv[])
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
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);
// reset QT_QPA_PLATFORM so we don't propagate it to our children (e.g. apps launched from the overview effect)
qunsetenv("QT_QPA_PLATFORM");
KWin::Application::createAboutData();
KQuickAddons::QtQuickSettings::init();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment