flatpak-docs icon indicating copy to clipboard operation
flatpak-docs copied to clipboard

Describe which access does not need additional permissions

Open niccokunzmann opened this issue 1 year ago • 4 comments

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?

niccokunzmann avatar May 22 '24 12:05 niccokunzmann

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 avatar May 22 '24 13:05 TingPing

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.

TingPing avatar May 22 '24 13:05 TingPing

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

bbhtt avatar May 23 '24 12:05 bbhtt

@bbhtt, thanks, yes that works well!

niccokunzmann avatar May 23 '24 13:05 niccokunzmann