flozz / yoga-image-optimizer

A graphical tool to convert and optimize JPEG, PNG and WebP images (based on YOGA)
https://yoga.flozz.org
GNU General Public License v3.0
144 stars 11 forks source link

Warn about lack of folder permissions due to flatpak sandbox restrictions #18

Open nekohayo opened 2 years ago

nekohayo commented 2 years ago

I'm running the flathub flatpak version, on Fedora 33.

If I have some images such as /tmp/foo bar/blahblah_001.PNG, and drag them into Yoga, nothing happens at all. No errors in the GUI, no errors in the terminal. I thought maybe flatpak's sandbox is preventing Yoga from getting those files (but in that case it should warn me clearly about it), but when I launched flatseal I saw that Yoga already had filesystem=host permissions, so why is it unable to read something from tmp ?

flozz commented 2 years ago

Hello,

I just tested and drag&drop of files works from most folders, but you are right, it does not works from /tmp. And if I browse to this folder with the FileChooser dialog, it is... empty...

Reading the Flatpak documentation, /tmp folder (and some others) are blacklisted and cannot be accessed from inside the sandbox :