Skip to content
Snippets Groups Projects
Commit 64720224 authored by Sébastien Blin's avatar Sébastien Blin
Browse files

qtwebengine: fix loading fonts on recent glibc

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

I don't want to have custom patched Qt version running for Jami,
so, for now disable sandboxing to fix font loading and wait for a
fixed Qt version.

GitLab: #442
Change-Id: Ia0918b6c47dc8a9bcfed8556043b5163e4963248
parent 7f0bc2ea
No related branches found
No related tags found
No related merge requests found
......@@ -53,6 +53,14 @@ main(int argc, char* argv[])
setlocale(LC_ALL, "en_US.utf8");
#ifdef Q_OS_LINUX
setenv("QT_QPA_PLATFORMTHEME", "gtk3", true);
#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))
setenv("QTWEBENGINE_CHROMIUM_FLAGS", "--no-sandbox", true);
#endif
#endif
QApplication::setApplicationName("Jami");
QApplication::setOrganizationDomain("jami.net");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment