Maybe just having some groups, like Firefox's containers.
It's less secure, but a simple setup would drastically reduce the number of programs with access to important information.
Re:Dotfile madness
by AnIdiotOnTheNet on Sunday February 03, 2019 @11:57AM
(#19070656)
So just don't do that. The application needs an "Open" dialog already so you can tell it what files to open, just have that dialog be a process run by the system instead of the application, treat the permission as implicit since the user is the one selecting the file, and pass a handle back to the application.
E.g. Flatpak has the concept of "Portals" for that: https://github.com/flatpak/flatpak/wiki/Portals
If every normal app has to ask for permission to use your disk, you’re just going to click “Okay” when malware asks. Then the whole system was for naught.