set OpenGL software rendering and set similar options for webview
authorMatthieu Gallien <matthieu.gallien@nextcloud.com>
Fri, 20 May 2022 13:38:26 +0000 (15:38 +0200)
committerMatthieu Gallien <matthieu_gallien@yahoo.fr>
Fri, 24 Jun 2022 06:00:48 +0000 (08:00 +0200)
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
src/gui/main.cpp

index 8b95de13888bbbf36f5242ccc974bd42c8b30b9e..5ef836f01dd5560b05cc44476789196f5cfc35d6 100644 (file)
@@ -58,6 +58,9 @@ void warnSystray()
 
 int main(int argc, char **argv)
 {
+    qputenv("QTWEBENGINE_CHROMIUM_FLAGS", "--disable-gpu --no-sandbox");
+    QCoreApplication::setAttribute(Qt::AA_UseSoftwareOpenGL, true);
+
 #ifdef Q_OS_WIN
     SetDllDirectory(L"");
 #endif