mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-08-05 23:35:50 +02:00
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
This commit is contained in:
parent
7f0bc2eaf0
commit
64720224eb
1 changed files with 8 additions and 0 deletions
|
@ -53,6 +53,14 @@ main(int argc, char* argv[])
|
||||||
setlocale(LC_ALL, "en_US.utf8");
|
setlocale(LC_ALL, "en_US.utf8");
|
||||||
#ifdef Q_OS_LINUX
|
#ifdef Q_OS_LINUX
|
||||||
setenv("QT_QPA_PLATFORMTHEME", "gtk3", true);
|
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
|
#endif
|
||||||
QApplication::setApplicationName("Jami");
|
QApplication::setApplicationName("Jami");
|
||||||
QApplication::setOrganizationDomain("jami.net");
|
QApplication::setOrganizationDomain("jami.net");
|
||||||
|
|
Loading…
Add table
Reference in a new issue