Replies: 2 comments 2 replies
-
The rule is still to let the user choose what it gives to an app. Asking for a specific directory with Allow/Deny responses is too restrictive. We can handle this case for the "library" portal. For example, the minimum would be the use of hints. With a "music" hint, the user will be presented with the options to give the xdg music and to add other locations. Possibly, a "filesystem" might be use and the interface shows the root folder with a warning, and also other folders so the user knows they can choose. What I mean is that the interface can be tweaked, the key thing being the user able to limit access to files. |
Beta Was this translation helpful? Give feedback.
-
This line from the libraries portal suggestion gives me some confidence that it'll fit my use case:
|
Beta Was this translation helpful? Give feedback.
-
Currently, the way flatpak handles access to known files and directories is a static permission (--filesystem=*).
In order to move those permissions to dynamic permissions, there should be a way for apps to request access to a specific directory or file(s) on the host system.
Why not the file chooser portal?
There are many use cases where the file chooser portal in its current form doesn't work for what an app needs.
The file chooser portal asks the user to specify the directory for the application. The ux of this can be iffy especially if an app needs access to a certain very nested folder (i.e. a mod manager asking for access to the game folder for example).
If the application needs access to multiple folders, they will have to pop up the file chooser portal multiple times to get access to everything.
The file chooser portal currently does not work when selecting the root folder. This means that file managers that need access to the host's root folder, cannot use the file chooser portal.
Beta Was this translation helpful? Give feedback.
All reactions