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.
nextcloud-client/xcb_3.6.4.patch

31 lines
1.1 KiB

2 years ago
--- desktop-3.6.0-orig/src/gui/main.cpp 2022-09-14 20:07:40.359852434 -0500
+++ desktop-3.6.0/src/gui/main.cpp 2022-09-14 20:07:20.869331548 -0500
@@ -56,8 +56,27 @@
3 years ago
.arg(Theme::instance()->appNameGUI()));
}
+#ifdef Q_OS_LINUX
+void wayland_hacks()
+{
+ QByteArray currentDesktop = qgetenv("XDG_CURRENT_DESKTOP").toLower();
+ QByteArray sessionDesktop = qgetenv("XDG_SESSION_DESKTOP").toLower();
+ QByteArray sessionType = qgetenv("XDG_SESSION_TYPE").toLower();
+ if (sessionType.contains("wayland") && (currentDesktop.contains("gnome") || sessionDesktop.contains("gnome")))
+ {
+ qputenv("QT_QPA_PLATFORM", "xcb");
+ }
+}
2 years ago
+#endif
+
3 years ago
+
int main(int argc, char **argv)
{
2 years ago
+
+#ifdef Q_OS_LIUX
+ wayland_hacks();
3 years ago
+#endif
2 years ago
+
qputenv("QTWEBENGINE_CHROMIUM_FLAGS", "--disable-gpu --no-sandbox");
QCoreApplication::setAttribute(Qt::AA_UseOpenGLES);