From 0c0b2292bcddb010e405e3ce78dab99ee91b8d15 Mon Sep 17 00:00:00 2001 From: Alex Jbanca Date: Wed, 2 Oct 2024 16:43:18 +0300 Subject: [PATCH] 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 --- AppRun | 3 +++ storybook/main.cpp | 1 + 2 files changed, 4 insertions(+) diff --git a/AppRun b/AppRun index 932857d943..efd704c431 100755 --- a/AppRun +++ b/AppRun @@ -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" ]] diff --git a/storybook/main.cpp b/storybook/main.cpp index 1a38d3ca51..6ff6eca305 100644 --- a/storybook/main.cpp +++ b/storybook/main.cpp @@ -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;