Allow Apps to request static --filesystem= permission #1405
Replies: 4 comments 19 replies
-
In order for a change in a static permission to take effect, a app restart is required. This is a interruption in the workflow for the user and the app looses all runtime state. |
Beta Was this translation helpful? Give feedback.
-
Thanks for reporting this issue here. Here are some questions to clarify things:
I really don't understand. Could you tell what is the case by giving a concrete example?
What do you expect instead? Filenames? Filepaths? And most importantly, for what purpose?
Could you tell what configuration? Remember the save directory?
What are you expecting? Have access to a permanent save location like Thanks! |
Beta Was this translation helpful? Give feedback.
-
Maybe for libraries/collections (music, pictures, games) if performance is an issue or there are other issues that are not fixable in a reasonable time (regarding the FUSE filesystem). |
Beta Was this translation helpful? Give feedback.
-
Snap just got a portal update that at least added the ability to grant access to a folder. But snap is also different, using apparmor, and maybe better for displaying the actual filepath and not a mounted one |
Beta Was this translation helpful? Give feedback.
-
Hey, I would like to share, why I think that we will never have portals working for every app, and that this is normal and instead a different method should be used.
The portal method doesnt work with many apps.
I would expect an app to implement a check if some file exists, if it doesnt send some message to the system with an info "I want this permission", the system opens a popup "APP wants permanent permission to X", I click yes and then it gets that permission permanently.
Nextcloud on MacOS does this for example. Kinda like on Android.
Instead when using portals, mounted directories have weird /var/run/ directories with strange IDs, and apps may look at the wrong place after a restart.
Instead, the portal could include a checkbox "permanent". If this is used, a flatpak override is done to add a permanent access to the real dir path, not mounted. A note "this is only applied on restart" would make sense.
This is especially needed for custom locations outside the xdg dirs, like /home/user/sync/pictures/random/edits for some image editing app that only looks in /home/user/pictures.
This system just doesnt work? Users should not need to enter the save directory every time they open an app.
With the current system, static filesystem permissions will always be needed, and that is fine, the integration of those should just be improved.
Beta Was this translation helpful? Give feedback.
All reactions