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

Add XDG config support #77

Merged
merged 2 commits into from
Sep 12, 2021
Merged

Add XDG config support #77

merged 2 commits into from
Sep 12, 2021

Conversation

stefanwascoding
Copy link
Contributor

By supporting the XDG Base Directory specification we can keep the $HOME folder clean.
This change will look for the config file in $XDG_CONFIG_HOME/aprc. If the environment variable is not specified, this defaults to ~/.config/aprc). If no file is found at the expected XDG location, we fall back to the previously used ~/.aprc.

This feature is loosely related to #63, which is about a larger overhaul of the config loading system.

By supporting the [XDG Base Directory specification](https://wiki.archlinux.org/title/XDG_Base_Directory#User_directories) we can keep the $HOME folder clean.
If we do not find a file in the expected XDG location, we fall back to the previously used ~/.aprc

This feature is loosely related to #63, which is about a larger overhaul of the config loading system.
Copy link
Member

@HarlemSquirrel HarlemSquirrel left a comment

Choose a reason for hiding this comment

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

Just seeing this now, sorry for the delay but this looks great. Thank you!

@HarlemSquirrel HarlemSquirrel merged commit ad76d45 into amazing-print:master Sep 12, 2021
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