Bug: anki flatplack wrong temp directory path is used

Setup: Anki 2.1.49 (dc80804a)⁩ has been installed on a Manjaro system through Pamac GUI as a flatpack.

Issue: Latex code does not converted into a picture

Error message:
I get the following message in the card when I am about to add a card with latex and hit the cards button:

Error executing <U+2068>latex<U+2069>.
Generated file: <U+2068>/var/tmp/anki_temp/tmp.tex<U+2069>
Have you installed latex and dvipng/dvisvgm? Error executing <U+2068>latex<U+2069>.


  • dvipng and dvisvgm are installed and available from the command line.
  • The /var/tmp/anki_temp/ directory does not exist. The directory where the files of the latex run are created is ~/.var/app/net.ankiweb.Anki/cache/tmp/anki_temp

This looks more like a packaging issue. Maybe you could try first by updating to 2.1.54, then if that doesn’t work report the issue to the packager of the flatpak.

1 Like

How could I identify the packager? I could only extract the following information:

$ flatpak info net.ankiweb.Anki

Anki - Powerful, intelligent flash cards

          ID: net.ankiweb.Anki
         Ref: app/net.ankiweb.Anki/x86_64/stable
        Arch: x86_64
      Branch: stable
     Version: 2.1.54
     License: AGPL-3.0+
      Origin: flathub
  Collection: org.flathub.Stable
Installation: system
   Installed: 398,8 MB
     Runtime: org.freedesktop.Platform/x86_64/21.08
         Sdk: org.freedesktop.Sdk/x86_64/21.08

      Commit: e4907f3949d47f67bc1ba159e2b1786b65e3ce358db93c4f08091cafe70c2b1f
      Parent: 87057906046964be6c40f3b82af9e8c3379ce6f0f97d9e956ca42a68a4051380
     Subject: Add release notes for version 2.1.54 to net.ankiweb.Anki.appdata.xml (e2511265)
        Date: 2022-06-25 07:38:53 +0000

I’m not familiar with flatpak practices, but I think if you report it on their issue tracker the maintainer will be notifier sooner or later.