parent
59f03924c9
commit
c310164446
@ -1 +1 @@
|
||||
SHA512 (desktop-3.6.4.tar.gz) = 7a9378e78e1e678e72898d1cca2188ba9f5488f565c72db49d70e9d3d6d8124c8fae7856226fb3b47edcb37cacaadc8f0fbc5ff3b6914e4ebb777a4ebd633513
|
||||
SHA512 (desktop-3.6.6.tar.gz) = b9fe96f9f8ac70c4c586b58f1b460e293d73e979d6b849d232112c7601463fd48608e8a093f3a8b0c2dc5a417e20e8aff3c2c3582eb7bce0fcb9f15e3d909327
|
||||
|
@ -1,30 +0,0 @@
|
||||
--- 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 @@
|
||||
.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");
|
||||
+ }
|
||||
+}
|
||||
+#endif
|
||||
+
|
||||
+
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
+
|
||||
+#ifdef Q_OS_LINUX
|
||||
+ wayland_hacks();
|
||||
+#endif
|
||||
+
|
||||
qputenv("QTWEBENGINE_CHROMIUM_FLAGS", "--disable-gpu --no-sandbox");
|
||||
QCoreApplication::setAttribute(Qt::AA_UseOpenGLES);
|
||||
|
Loading…
Reference in new issue