Those files are long gone but the permissions are permanent?
Why is this a thing… Do I need to be careful about where I select my files now, and check permission stores sometimes…?
The permissions are requested by Firefox through portal[1], and the files are exported[2]. These are dynamic permissions.
They use to be unable to removed[3], though I was able to remove them with flatpak permission-remove documents <ID>. (permission-reset just removes App and Permissions but leaves the entries there.)
However I think the more correct way as said in the GNOME blog, is to use flatpak document-unexport <ID>[4]. (Will try next time…)
I suppose they indeed build up overtime. I don’t think I saw them in Flatseal. Or it’d be nice if the app can remove the permission afterwards.
The list really builds up over time to be quite long and full of dead files.
It’s an open discussion[1], and currently no way to clear them so I use this:
$ for i in $(flatpak documents); do flatpak document-unexport --doc-id $i; done
Not sure if there is a better way (just delete the document table, perhaps?).