Warning, /libraries/xdg-portal-test-kde/flatpak-build/patch/qtbase-use-wayland-on-gnome.patch is written in an unsupported language. File is not indexed.

0001 diff --git a/src/gui/kernel/qguiapplication.cpp b/src/gui/kernel/qguiapplication.cpp
0002 index b8bfad4f16..676fdfad5e 100644
0003 --- a/src/gui/kernel/qguiapplication.cpp
0004 +++ b/src/gui/kernel/qguiapplication.cpp
0005 @@ -1376,14 +1376,7 @@ void QGuiApplicationPrivate::createPlatformIntegration()
0006          if (sessionType == QByteArrayLiteral("x11") && !platformName.contains(QByteArrayLiteral("xcb"))) {
0007              platformName = QByteArrayLiteral("xcb");
0008          } else if (sessionType == QByteArrayLiteral("wayland") && !platformName.contains(QByteArrayLiteral("wayland"))) {
0009 -            QByteArray currentDesktop = qgetenv("XDG_CURRENT_DESKTOP").toLower();
0010 -            QByteArray sessionDesktop = qgetenv("XDG_SESSION_DESKTOP").toLower();
0011 -            if (currentDesktop.contains("gnome") || sessionDesktop.contains("gnome")) {
0012 -                qInfo() << "Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome."
0013 -                        << "Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.";
0014 -            } else {
0015 -                platformName = QByteArrayLiteral("wayland");
0016 -            }
0017 +            platformName = QByteArrayLiteral("wayland");
0018          }
0019      }
0020  #ifdef QT_QPA_DEFAULT_PLATFORM_NAME