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

Load portal config from data dirs with priority #1665

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

swick
Copy link
Collaborator

@swick swick commented Mar 13, 2025

Continuation of #1561 to resolve #603.

Tried for a few hours to get proper tests for the configuration (unshare, setting xdg base dir env, ...) but gave up in the end.

swick added 2 commits March 13, 2025 18:30
Follow the XDG Base Directory Specification for data dirs. That
specifically means searching in the user's data dir, and all the system
data dirs.

Closes flatpak#603
Prefers the config from the user data dir and in order of the system
dirs. Lower priority configs get ignored. This makes it possible to
override immutable system configs.
@swick swick changed the title Wip/config xdg data dirs Load portal config from data dirs with priority Mar 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Search in $XDG_DATA_DIRS for portals
1 participant