graesslin added a comment.
In D11447#229478 <https://phabricator.kde.org/D11447#229478>, @romangg wrote: > Could we use a wrapper for QApplication being called by > > QApplication app = KWorkSpace::createPlattformAwareQApplication(argc, argv); > > > and that sets and unsets the env variable in the wrapper call? With above code there might be a copy involved though. I don't think Qt allows this, the copy and move ctor should be deleted. There's another solution which might be cleaner and which KWin uses for that problem: modifying the process environment. I'll give a try whether this could work here. Btw it was a surprise to me that this unsetting is needed at all. REPOSITORY R120 Plasma Workspace BRANCH unset-qt-qpa-platform REVISION DETAIL https://phabricator.kde.org/D11447 To: graesslin, #plasma, davidedmundson, romangg Cc: romangg, fvogt, plasma-devel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart