Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filesystem permissions could elaborate on meaning of xdg- variables #433

Closed
sudoshindo opened this issue Jan 8, 2024 · 7 comments · Fixed by #434
Closed

Filesystem permissions could elaborate on meaning of xdg- variables #433

sudoshindo opened this issue Jan 8, 2024 · 7 comments · Fixed by #434

Comments

@sudoshindo
Copy link

https://github.com/flatpak/flatpak-docs/blob/master/docs/sandbox-permissions-reference.rst#filesystem-permissions

I have a question.
Why does this document not specify the exact paths under Filesystem permissions?

I understand that there may be distros that are outliers that place these directories elsewhere.
But can't you specify the commonly used paths and just add a note that tells the user that obscure OSes may use different paths?

Don't assume everyone has read the xdg specification. It's more convenient if you don't make them look for a separate web page for this information.

@bbhtt
Copy link
Collaborator

bbhtt commented Jan 8, 2024

What do you mean by exact paths? Which ones? The various xdg-foo-s are values the filesystem argument takes.

For example, --filesystem=xdg-desktop will make Flatpak use the path defined in XDG_DESKTOP_DIR first, if not fallback to $HOME/Desktop. You don't need to read anything for this.

@TingPing
Copy link
Member

TingPing commented Jan 8, 2024

Don't assume everyone has read the xdg specification.

Distributing software for the freedesktop means the distributor should have a basic understanding of the XDG specs. That said I'm all for adding more convenient links and brief explanations for it when relevant.

@sudoshindo
Copy link
Author

sudoshindo commented Jan 8, 2024

Distributing software for the freedesktop means the distributor should have a basic understanding of the XDG specs

End-users such as me may seek this information when overriding permissions on Flatpaks they install.

@TingPing
Copy link
Member

TingPing commented Jan 8, 2024

That is fair. That page could expand on what those refer to.

@TingPing TingPing changed the title Specify paths under Filesystem permissions Filesystem permissions could elaborate on meaning of xdg- variables Jan 8, 2024
@sudoshindo
Copy link
Author

I was reading a script someone made before I used it on my system.
It had references to xdg-config and xdg-data.
The Flatpak command reference doesn't explicitly state these paths so I had to go through Reddit posts and search the messages of specific Discord servers to find the answer.

@hfiguiere
Copy link
Contributor

https://specifications.freedesktop.org/basedir-spec/latest/ar01s02.html

@sudoshindo
Copy link
Author

That is fair. That page could expand on what those refer to.

Yeah, just list the paths that major distros like Ubuntu and Fedora use. Then, add a note that says that these paths might not apply to every single distro under the sun.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants