Skip to content

fix: honor RUSTIC_HOME and XDG config precedence - #1867

Draft
magrathean-uk wants to merge 1 commit into
rustic-rs:mainfrom
magrathean-uk:split/issues-859-1470-1410-config-precedence
Draft

fix: honor RUSTIC_HOME and XDG config precedence#1867
magrathean-uk wants to merge 1 commit into
rustic-rs:mainfrom
magrathean-uk:split/issues-859-1470-1410-config-precedence

Conversation

@magrathean-uk

@magrathean-uk magrathean-uk commented Aug 1, 2026

Copy link
Copy Markdown

Summary

Aligns profile discovery with the documented precedence: an absolute RUSTIC_HOME config directory first, then XDG_CONFIG_HOME and XDG_CONFIG_DIRS, followed by platform defaults. On Windows it also checks USERPROFILE/.config/rustic. Relative environment entries are ignored.

This PR is the implementation for #859; the same shared resolver is submitted separately for the related config-path issues.

Validation

  • cargo fmt --check
  • cargo test --locked --lib config::tests::
  • git diff --check

Fixes #859.

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.

Add RUSTIC_HOME and update precedence for platform specific app directories

1 participant