You could create a shell script to start Anki with the --no-sandbox
flag:
#!/bin/bash
export QT_QPA_PLATFORM=xcb
anki --no-sandbox
QT_QPA_PLATFORM=xcb
prevents Anki from running in Wayland. That’s optional of course, but I recommend it because Wayland isn’t a good experience yet.