set OpenGL software rendering and set similar options for webview

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
This commit is contained in:
Matthieu Gallien 2022-05-20 15:38:26 +02:00 committed by Matthieu Gallien
parent bc7519a49c
commit e581805138
1 changed files with 3 additions and 0 deletions

View 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