ripose-jp / Memento

An mpv-based video player for studying Japanese
https://ripose-jp.github.io/Memento/
GNU General Public License v2.0
472 stars 22 forks source link

Heads up for those using Anki flatpak #189

Closed koalagang closed 9 months ago

koalagang commented 9 months ago

I use personally use nix and had no issue but I was helping my brother (who uses flatpak) set up memento and had issues getting the screenshots and audio added to his cards. After investigating on his system for a bit, I realised that memento creates its screenshots and audio clips in /tmp -- a directory which the Anki flatpak sandbox does not have access to by default. I fixed the issue by giving Anki access to the /tmp directory. This can easily be done with flatseal -- a graphical utility for reviewing and modifying the permissions of your flatpak applications.

I would suggest adding a note about this to the README.

ripose-jp commented 9 months ago

Thanks for the heads up. I'll add something to the troubleshooting section of the README. I'll look into sending images and audio as base64 so hopefully this sort of thing becomes a non-issue.