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:
parent
63f6323185
commit
0c0b2292bc
3
AppRun
3
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 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 LD_LIBRARY_PATH="${APPDIR}/usr/lib/:${APPDIR}/usr/lib/nss:${LD_LIBRARY_PATH}"
|
||||||
export QT_QPA_PLATFORM="xcb"
|
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
|
DEFAULT_LANG=en_US.UTF-8
|
||||||
if [[ "$LANG" == "C.UTF-8" ]]
|
if [[ "$LANG" == "C.UTF-8" ]]
|
||||||
|
|
|
@ -40,6 +40,7 @@ int main(int argc, char *argv[])
|
||||||
QGuiApplication::setApplicationName(QStringLiteral("Status Desktop Storybook"));
|
QGuiApplication::setApplicationName(QStringLiteral("Status Desktop Storybook"));
|
||||||
|
|
||||||
qputenv("QT_QUICK_CONTROLS_HOVER_ENABLED", QByteArrayLiteral("1"));
|
qputenv("QT_QUICK_CONTROLS_HOVER_ENABLED", QByteArrayLiteral("1"));
|
||||||
|
qputenv("QTWEBENGINE_CHROMIUM_FLAGS", QByteArrayLiteral("--disable-seccomp-filter-sandbox"));
|
||||||
|
|
||||||
QQmlApplicationEngine engine;
|
QQmlApplicationEngine engine;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue