TenderOwl / Frog

Extract text from any image, video, QR Code and etc.
https://getfrog.app/
MIT License
568 stars 39 forks source link

[Bug] Cannot OCR pictures due to exception PermissionError #182

Closed tomodachi closed 6 months ago

tomodachi commented 9 months ago

flatpak list |grep owl Frog com.github.tenderowl.frog 1.5.0 stable system

trying to OCR a selection into text throws this error:

Traceback (most recent call last):
  File "/app/lib/python3.11/site-packages/frog/services/screenshot_service.py", line 104, in take_screenshot_finish
    self.decode_image(lang, filename, copy, True)
  File "/app/lib/python3.11/site-packages/frog/services/screenshot_service.py", line 146, in decode_image
    os.unlink(file)
PermissionError: [Errno 13] Permission denied: '/run/user/1000/doc/c2c73b7/out.png'

I suspect its got something to do with running it from it's flatpak as

the file is owned by me and I can easily read / write it from outside the application