You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qt6-qtbase/qtbase-use-wayland-on-gnome...

20 lines
1005 B

4 years ago
diff --git a/src/gui/kernel/qguiapplication.cpp b/src/gui/kernel/qguiapplication.cpp
4 years ago
index 08a00d82..f555fb4f 100644
4 years ago
--- a/src/gui/kernel/qguiapplication.cpp
+++ b/src/gui/kernel/qguiapplication.cpp
4 years ago
@@ -1411,13 +1411,7 @@ void QGuiApplicationPrivate::createPlatformIntegration()
bool isGnome = false;
4 years ago
const QByteArray waylandPlatformName = defaultIsWayland ? platformName : "wayland";
if (hasWaylandDisplay || isWaylandSessionType) {
- const QByteArray currentDesktop = qgetenv("XDG_CURRENT_DESKTOP").toLower();
- const QByteArray sessionDesktop = qgetenv("XDG_SESSION_DESKTOP").toLower();
4 years ago
- isGnome = currentDesktop.contains("gnome") || sessionDesktop.contains("gnome");
- if (isGnome)
4 years ago
- preferredPlatformOrder.append(waylandPlatformName);
4 years ago
- else
4 years ago
- preferredPlatformOrder.prepend(waylandPlatformName);
+ preferredPlatformOrder.prepend(waylandPlatformName);
if (defaultIsWayland)
platformName.clear();