3 ms·
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 syste
by AnIdiotOnTheNet 8y ago
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.
- detaro 8y agoE.g. Flatpak has the concept of "Portals" for that: https://github.com/flatpak/flatpak/wiki/Portals https://github.com/flatpak/flatpak/wiki/Portals