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

uses default value when $XDG-CONFIG-HOME is missing #50

Merged
merged 3 commits into from
Mar 26, 2023

Conversation

7sDream
Copy link
Contributor

@7sDream 7sDream commented Mar 26, 2023

In the real world, there are many systems that do not set XDG-CONFIG-HOME variable, and fontconfig will follow the XDG spec, use a default value of $HOME/.config.

This PR emulates it's behavior. And will fallback to loading the global config file /etc/fonts/local.conf if parse user's config failed(e.g. file not exist).

.gitignore Outdated Show resolved Hide resolved
src/lib.rs Outdated Show resolved Hide resolved
Copy link
Owner

@RazrFalcon RazrFalcon left a comment

Choose a reason for hiding this comment

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

Some minor issues left.

@7sDream
Copy link
Contributor Author

7sDream commented Mar 26, 2023

🆙 updated as suggested.

@RazrFalcon RazrFalcon merged commit 46f34e3 into RazrFalcon:master Mar 26, 2023
@RazrFalcon
Copy link
Owner

Thanks!

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