summaryrefslogtreecommitdiffstats
path: root/source/l/qt5
diff options
context:
space:
mode:
Diffstat (limited to 'source/l/qt5')
-rw-r--r--source/l/qt5/profile.d/qt5.csh10
-rw-r--r--source/l/qt5/profile.d/qt5.sh9
2 files changed, 19 insertions, 0 deletions
diff --git a/source/l/qt5/profile.d/qt5.csh b/source/l/qt5/profile.d/qt5.csh
index ec1ecd9be..0c3f10d42 100644
--- a/source/l/qt5/profile.d/qt5.csh
+++ b/source/l/qt5/profile.d/qt5.csh
@@ -15,3 +15,13 @@ if ( ! $?QT5DIR ) then
endif
endif
set path = ( $path $QT5DIR/bin )
+# Unfortunately Chromium and derived projects (including QtWebEngine) seem
+# to be suffering some bitrot when it comes to 32-bit support, so we are
+# forced to disable the seccomp filter sandbox on 32-bit or else all of these
+# applications crash. If anyone has a patch that gets these things running on
+# 32-bit without this workaround, please let volkerdi or alienBOB know, or
+# post your solution on LQ. Thanks. :-)
+file /bin/cat | grep -wq 32-bit
+if ( "$?" == "0" ) then
+ setenv QTWEBENGINE_CHROMIUM_FLAGS="--disable-seccomp-filter-sandbox"
+endif
diff --git a/source/l/qt5/profile.d/qt5.sh b/source/l/qt5/profile.d/qt5.sh
index 8ee075e17..c7495e374 100644
--- a/source/l/qt5/profile.d/qt5.sh
+++ b/source/l/qt5/profile.d/qt5.sh
@@ -15,3 +15,12 @@ else
fi
PATH="$PATH:$QT5DIR/bin"
export QT5DIR
+# Unfortunately Chromium and derived projects (including QtWebEngine) seem
+# to be suffering some bitrot when it comes to 32-bit support, so we are
+# forced to disable the seccomp filter sandbox on 32-bit or else all of these
+# applications crash. If anyone has a patch that gets these things running on
+# 32-bit without this workaround, please let volkerdi or alienBOB know, or
+# post your solution on LQ. Thanks. :-)
+if file /bin/cat | grep -wq 32-bit ; then
+ export QTWEBENGINE_CHROMIUM_FLAGS="--disable-seccomp-filter-sandbox"
+fi