fix: WebEngineView with qt 5.15.2

Adding `--disable-seccomp-filter-sandbox` flag to chromium as a workaround for https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1944468
This commit is contained in:
Alex Jbanca 2024-10-02 16:43:18 +03:00 committed by Alex Jbanca
parent 63f6323185
commit 0c0b2292bc
2 changed files with 4 additions and 0 deletions

3
AppRun
View File

@ -7,6 +7,9 @@ export GST_PLUGIN_SYSTEM_PATH="${APPDIR}/usr/lib/gstreamer-1.0"
export GST_PLUGIN_SYSTEM_PATH_1_0="${APPDIR}/usr/lib/gstreamer-1.0"
export LD_LIBRARY_PATH="${APPDIR}/usr/lib/:${APPDIR}/usr/lib/nss:${LD_LIBRARY_PATH}"
export QT_QPA_PLATFORM="xcb"
# TODO: Remove once qt 5.15.2 support is dropped
# Fixing bug: https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1944468
export QTWEBENGINE_CHROMIUM_FLAGS="--disable-seccomp-filter-sandbox"
DEFAULT_LANG=en_US.UTF-8
if [[ "$LANG" == "C.UTF-8" ]]

View File

@ -40,6 +40,7 @@ int main(int argc, char *argv[])
QGuiApplication::setApplicationName(QStringLiteral("Status Desktop Storybook"));
qputenv("QT_QUICK_CONTROLS_HOVER_ENABLED", QByteArrayLiteral("1"));
qputenv("QTWEBENGINE_CHROMIUM_FLAGS", QByteArrayLiteral("--disable-seccomp-filter-sandbox"));
QQmlApplicationEngine engine;