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

Fix default value of XDG_CONFIG_HOME in config path resolution #347

Merged
merged 1 commit into from
Jan 11, 2024
Merged

Fix default value of XDG_CONFIG_HOME in config path resolution #347

merged 1 commit into from
Jan 11, 2024

Conversation

beatbrot
Copy link
Contributor

@beatbrot beatbrot commented Jan 1, 2024

A seemingly undocumented feature of autorestic is, that config files are loaded from $XDG_CONFIG_HOME/.config/autorestic by default. The code suggests, that the default value for $XDG_CONFIG_HOME is supposed to be ~/.config/.

Unfortunately, the code had a minor bug that lead to the default being ~.

This PR fixes this bug, adds a few tests and mentions this feature in the documentation.

This is my first Go code, so please give feedback where needed :)

Copy link

vercel bot commented Jan 1, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
autorestic ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 1, 2024 8:00pm

@cupcakearmy cupcakearmy merged commit ce9140f into cupcakearmy:master Jan 11, 2024
2 checks passed
@beatbrot beatbrot deleted the xdg_config_handling branch January 11, 2024 21:08
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.

None yet

2 participants