blob: 526963cbfc61dd24832588ae2e6be570a703387d (
plain)
1 diff --git a/src/gui/kernel/qguiapplication.cpp b/src/gui/kernel/qguiapplication.cpp
2 index b8bfad4f16..676fdfad5e 100644
3 --- a/src/gui/kernel/qguiapplication.cpp
4 +++ b/src/gui/kernel/qguiapplication.cpp
5 @@ -1376,14 +1376,7 @@ void QGuiApplicationPrivate::createPlatformIntegration()
6 if (sessionType == QByteArrayLiteral("x11") && !platformName.contains(QByteArrayLiteral("xcb"))) {
7 platformName = QByteArrayLiteral("xcb");
8 } else if (sessionType == QByteArrayLiteral("wayland") && !platformName.contains(QByteArrayLiteral("wayland"))) {
9 - QByteArray currentDesktop = qgetenv("XDG_CURRENT_DESKTOP").toLower();
10 - QByteArray sessionDesktop = qgetenv("XDG_SESSION_DESKTOP").toLower();
11 - if (currentDesktop.contains("gnome") || sessionDesktop.contains("gnome")) {
12 - qInfo() << "Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome."
13 - << "Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.";
14 - } else {
15 - platformName = QByteArrayLiteral("wayland");
16 - }
17 + platformName = QByteArrayLiteral("wayland");
18 }
19 }
20 #ifdef QT_QPA_DEFAULT_PLATFORM_NAME
|