I had a few times where I tried to save a file from a flatpak. The different apps behave very differently regarding filesystem access. From some apps it seems pretty clear that one has no access to one’s homefolder. Others have a very strange temporary file structure. For other apps one can see the same files and folders as from other non-flatpak apps. Confusing enough from a user perspective, I do understand that some of theses obstacles for the moment. But the following two examples I experienced are very difficult to accept and the last one should not appear:
I tried the ‘Simple Scan’ app from Flatpak. It seemed good at first glance. I could access my scanner, crop my pictures and store them. Then I looked in the pictures folder and nothing. Started again… I scanned the pictures, tried to save them but then I got asked if I wanted to overwrite a file with that exact name. But from the app I could not see any file with that name so I chose another name and could save it. I invoked the save menu again and then saw the images is scanned for a second time. I left the app open and checked in the filemanager but could not the any scanned images. I gave up after trying a few more times, uninstalled the app, reinstalled it via the pacman instead and everything worked as expected.
Some weeks later when I was cleaning up my ~/Pictures/ folder I found plenty of images name with a leading . and a trailing string. Those were the images I scanned and could not find because they where somehow stored as hidden files while the flatpak app did give no hint that they were not stored under the name I gave them.
Second case.
I had a few times where I created a file from a flatpak app and when I wanted to open it again - either from that flatpak app or another native application - it was gone. Luckily it never was anything important. Since I was using bluefin at that time which primarily uses flatpak I decided to move to a more reliable distro which did not get in my way as often. I wanted to try flatpak a bit more since I do see advantages in doing that.
I had the feeling that I didn’t have that problem anymore. But when I tried to store a work-in-progress file today the app showed me my regular home folder with all the same files I see from the cli. It let me save that file without any hint that this might not have worked. I restarted the app and the file was gone. I checked from the cli - also gone. I checked if it were a case of a mangled filename like with the scanner app but also: no. I tried to reproduce it and it lets me save files the way I expect it to work with absolutely no clue that the files will vanish the moment that app is closed.
The normal answer in IT is … is complicated, different layers of abstraction, sanboxing bla bla. I don’t wanna be rude here, sorry for that. But the point is, the answer can’t be the typical the user should have know that there is something different while the whole way it presents itself exactly as expected without hint of any problem up to the point were you loose a few hours of work.
And due to the complexity of the matter I have to figure out if it is 1) a but in flatpak itself, 2) a bug in the flatpak implementation of my distro, 3) somewhere between flatpak and my desktop env, 4) a bad flatpak app or in that case since it is a JAVA app, somewhere completely different.
Sorry gain, it was frustrating.
Isn’t it at least possible to either force the app to store files in a place where the user can access them again or at least give an access denied so that one knows one can’t store the files. But simulating a success with no hint that it immediately throws away your files makes me wonder, how can I decide which seemingly behaviour of flatpak apps I can trust and when I cannot. When I can successfully save a file I should be able to assume that I did exactly that. Is there any way to judge the reliability of a flatpak app?