Currently experiencing issues when opening Anki on Linux Mint 21.2 (Xfce edition). Anki itself has been installed through flathub. Whenever I try to open Anki by running a command in my terminal (below) or by opening it from the start menu, it doesn't actually open the GUI window for anki, but it still acts as if it were trying to open itself. It starts opening a million copies of itself until I run out of RAM and have no choice but to restart the computer. These issues do not happen if I try to open Anki from the software manager, or when opening the non-flatpak version of anki that I got from apt (which itself is out of date). Issues persist even after trying to boot it into safe mode (pressing and holding down shift while opening the program), uninstalling all add-ons or even uninstalling and reinstalling anki. What to do? Thanks in advance. Also, apologies for my weird phrasing, English isn't my native language.
Here's the command I use:
flatpak run net.ankiweb.Anki %f
``