D11447: No longer export QT_QPA_PLATFORM env variable to the session
Martin Flöser
noreply at phabricator.kde.org
Mon Mar 19 20:10:44 UTC 2018
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20180319/f9412a07/attachment.html>
More information about the Plasma-devel
mailing list