Yes I just did that now. They need to be set as an environment variable though (like env QTWEBENGINE_CHROMIUM_FLAGS="--disable-seccomp-filter-sandbox" ./run
) because if I just append them to ./run
, bash thinks they are a file to be opened with ./run
.
All the suggested flags (--disable-seccomp-filter-sandbox
, --no-sandbox
and --single-process
) allow me to open Anki without the failure in syscall
error, and the WebViews actually display what they are supposed to.
However the following error appears every time a WebView closes:
Caught exception:
Traceback (most recent call last):
File "/home/zjosua/sw_dev/anki/qt/aqt/webview.py", line 37, in cmd
return json.dumps(self.onCmd(str))
File "/home/zjosua/sw_dev/anki/qt/aqt/webview.py", line 123, in _onCmd
return self._onBridgeCmd(str)
File "/home/zjosua/sw_dev/anki/qt/aqt/webview.py", line 529, in _onBridgeCmd
if self._shouldIgnoreWebEvent():
File "/home/zjosua/sw_dev/anki/qt/aqt/webview.py", line 522, in _shouldIgnoreWebEvent
if sip.isdeleted(self):
TypeError: isdeleted() argument 1 must be sip.simplewrapper, not AnkiWebView
These didn’t show up when I didn’t pass any arguments (and got just blank WebViews), but I was able to provoke something similar when I started navigating with shortcuts:
Caught exception:
Traceback (most recent call last):
File "/home/zjosua/sw_dev/anki/qt/aqt/main.py", line 997, in onStudyKey
self.moveToState("review")
File "/home/zjosua/sw_dev/anki/qt/aqt/main.py", line 658, in moveToState
self.clearStateShortcuts()
File "/home/zjosua/sw_dev/anki/qt/aqt/main.py", line 991, in clearStateShortcuts
sip.delete(qs)
TypeError: delete() argument 1 must be sip.simplewrapper, not QShortcut