Use WAYLAND_DISPLAY and DISPLAY instead of XDG_SESSION_TYPE

This is a backport of https://codereview.qt-project.org/c/qt/qtbase/+/259186

Since distros are switching to KDE's patch collection, it would be really nice if Qt 5 apps will run without setting extra variables on lightweight environments like sway. :)

Merge request reports

Loading