Skip to content

Search RUSTIC_HOME and XDG profile directories - #1928

Open
magrathean-uk wants to merge 1 commit into
rustic-rs:mainfrom
magrathean-uk:feat/859-config-paths
Open

magrathean-uk wants to merge 1 commit into
rustic-rs:mainfrom
magrathean-uk:feat/859-config-paths

Conversation

@magrathean-uk

@magrathean-uk magrathean-uk commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

Add RUSTIC_HOME/config, XDG_CONFIG_HOME/rustic, and ordered XDG_CONFIG_DIRS/rustic profile lookup ahead of the platform and global defaults. On Windows, also search %USERPROFILE%\.config\rustic. The order is documented and covered by isolated child-process environment tests.

Fixes #859 and #1470. Addresses #1410.

Validation: the combined CLI suite passed 70 tests, including four config-path regressions; this patch applied to clean main, cargo fmt --check and git diff --check passed. The Windows-specific lookup helper was unit-tested on macOS, but a Windows runtime check remains needed. Standalone cargo test --locked --test config_paths passed (4/4) on this branch.

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