Merge pull request #4884 from nextcloud/bugfix/webEngineOnWin11

Bugfix/web engine on win11
This commit is contained in:
Matthieu Gallien 2022-09-05 09:14:56 +02:00 committed by GitHub
commit 548890c019
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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_UseOpenGLES);
#ifdef Q_OS_WIN
SetDllDirectory(L"");
#endif