From 29c758a1419ed1d2dad7eae4651f59019ae07be1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Blin?=
 <sebastien.blin@savoirfairelinux.com>
Date: Thu, 20 Jan 2022 15:20:35 -0500
Subject: [PATCH] qtwebengine: remove no-sandbox flag

In 64720224ebbeb793d10264c38a92bb0f2bfdebcb, a no-sandbox flag was
added because QtWebEngine can't load fonts on recent glibc. Source:
https://bugreports.qt.io/browse/QTBUG-92969
https://bugs.chromium.org/p/chromium/issues/detail?id=1164975

Now, we use Qt 6.2, so this flag should not be necessary.
So, we can finally close #442 without any dirty workaround.

GitLab: #442
Change-Id: I52835e40d37d2397a891415fd2b1dd8dd4048b8b
---
 src/main.cpp | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/src/main.cpp b/src/main.cpp
index cc8bdacf0..e8ab28064 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -51,7 +51,6 @@ parseInputArgument(int& argc, char* argv[], QList<char*> argsToParse)
 }
 
 // Qt WebEngine Chromium Flags
-static char noSandbox[] {"--no-sandbox"};
 static char disableWebSecurity[] {"--disable-web-security"};
 static char singleProcess[] {"--single-process"};
 
@@ -77,14 +76,6 @@ main(int argc, char* argv[])
      * https://bugreports.qt.io/browse/QTBUG-99889
      */
     unsetenv("QT_STYLE_OVERRIDE");
-#ifdef __GLIBC__
-    // Current glibc is causing some bugs with font loading
-    // See https://bugreports.qt.io/browse/QTBUG-92969
-    // As I prefer to not use custom patched Qt, just wait for a
-    // new version with this bug fixed
-    if (__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 33))
-        qtWebEngineChromiumFlags << noSandbox;
-#endif
 #endif
     qtWebEngineChromiumFlags << disableWebSecurity;
     qtWebEngineChromiumFlags << singleProcess;
-- 
GitLab