MohrJonas / obsidian-ocr

Obsidian OCR allows you to search for text in your images and pdfs
GNU General Public License v3.0
281 stars 5 forks source link

Adding a message to the README about Flatpak #9

Closed evilgeniuschronicles closed 2 years ago

evilgeniuschronicles commented 2 years ago

I tried all sorts of things to get this to work on my System76 computer. I went so far as to add settings to specify the path to the binaries. Turns out that Flatpak with its sandboxing and path rewriting makes this impossible or at least to hard to bother with. Even telling it /var/run/usr/bin/tesseract as the path, it failed on trying to find the libraries since they are linked in /usr/lib. Bleh.

The real solution is to let people using Flatpak know that it is incompatible with this plugin.

MohrJonas commented 2 years ago

Thank you very much 😊 This is something I didn't event think about and people should be aware of.

evilgeniuschronicles commented 2 years ago

I spent far too long trying to make this work. Previously I had no idea how any of this worked, so I have learned more than I really wanted to about Flatpak and system permissions. I had observed that starting the Flatpak installation via the command line was able to find the binaries but invoking from the GUI did not. In the end, it turns out that it is pretty easy to uninstall and reinstall. All the important information is in the repository anyway so you don't even lose configuration.