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.
[ Parent
| on HN ]
E.g. Flatpak has the concept of "Portals" for that: https://github.com/flatpak/flatpak/wiki/Portals