flatpak / flatpak-docs

Flatpak documentation
https://docs.flatpak.org
Other
79 stars 132 forks source link

Describe which access does not need additional permissions #472

Closed niccokunzmann closed 1 month ago

niccokunzmann commented 3 months ago

This is a follow-up of https://github.com/flatpak/flatpak-docs/pull/471

I would like to make clear how to store data in the best way and when no additional permissions are needed.

Question: Are these variables mapped to in-app directories in the same way during the build?

TingPing commented 3 months ago

The "Filesystem access" section right below here already says this. Avoid filesystem permissions and use XDG directories. Maybe it could be expanded and XDG turned into a link.

TingPing commented 3 months ago

Question: Are these variables mapped to in-app directories in the same way during the build?

No. You don't store data in a users home during builds.

bbhtt commented 3 months ago

I added an autolabel https://github.com/flatpak/flatpak-docs/commit/5423019ca9c88efcefa74280a3698923ac252edc, so if you rebase over master now you need to just do conventions:XDG base directories as the label

niccokunzmann commented 3 months ago

@bbhtt, thanks, yes that works well!