Skip to content

Read configuration from $XDG_CONFIG_HOME on Linux - #1105

Merged
raphamorim merged 3 commits into
raphamorim:mainfrom
ranisalt:xdg-config-home
May 13, 2025
Merged

raphamorim merged 3 commits into
raphamorim:mainfrom
ranisalt:xdg-config-home

Conversation

@ranisalt

Copy link
Copy Markdown
Contributor

Uses $XDG_CONFIG_HOME to find configuration files on Linux, with a lower priority than $RIO_CONFIG_HOME but higher than $HOME as specified in XDG Base Directory Specification

There is a single base directory relative to which user-specific configuration files should be written. This directory is defined by the environment variable $XDG_CONFIG_HOME.

The fallback to $HOME/.config is specified further below:

$XDG_CONFIG_HOME defines the base directory relative to which user-specific configuration files should be stored. If $XDG_CONFIG_HOME is either not set or empty, a default equal to $HOME/.config should be used.

Previous work at #14 and also needed for flathub/flathub#6483

@ranisalt ranisalt mentioned this pull request May 13, 2025
5 tasks done
@raphamorim

Copy link
Copy Markdown
Owner

@ranisalt could you update the releases.md file in the docs folder

@raphamorim raphamorim left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⭐

@raphamorim
raphamorim merged commit 3be3cc4 into raphamorim:main May 13, 2025
@ranisalt
ranisalt deleted the xdg-config-home branch May 13, 2025 19:58
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.

2 participants