TenderOwl / Frog

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

Canno't screenshot or load file on ubuntu22.04/flatpack #71

Open Onion2222 opened 2 years ago

Onion2222 commented 2 years ago

First of all, thank you for your amazing app.

I'm currently having problems using your app on ubuntu 22.04.1 through flatpack.

When I take a screenshot the window blink and i get this error:

Cache downloaded codes: ['eng']
on_shot_error? 

And it doesn't take a screenshot.

And when I load a file in my home folder I get this: Capture d’écran du 2022-09-02 02-05-26

Decoding with eng language.
Traceback (most recent call last):
  File "/app/lib/python3.9/site-packages/frog/window.py", line 242, in on_open_image
    dialog.close()
AttributeError: 'FileChooserNative' object has no attribute 'close'
on_shot_error? No text found.
on_screenshot_error? Could not access your file!

And it doesn't load the file.

I didn't touch any flatpack permissions because I have absolutely no idea on how flatpack works.

Thanks a lot for your help !

Onion2222 commented 2 years ago

The screenshot finally manage to work after a reboot. However, I still can't open a file. Thanks a lot for the help.

amka commented 2 years ago

I'll check it anyway. Seems like Ubuntu doesn't allow app to access outside flatpak sandbox, but I need some time to investigate.

BarbzYHOOL commented 1 year ago

@amka me too

i guess it's the same issue with all flatpaks having access to only one or two directory which is irritating for me