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

XDG config #100

Merged
merged 6 commits into from Oct 9, 2020
Merged

XDG config #100

merged 6 commits into from Oct 9, 2020

Conversation

pniedzwiedzinski
Copy link
Contributor

This will close #97.

Copy link
Owner

@makew0rld makew0rld left a comment

Choose a reason for hiding this comment

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

Thanks for making this PR!

To fully close #97, could you parse all the XDG variables this way? So replace xdg_cache with checking for basedir.CacheHome, and xdg_data with checking for basedir.DataHome. Thanks! See my other comments below.

config/config.go Outdated
@@ -10,6 +10,8 @@ import (
"runtime"
"strings"

Copy link
Owner

@makew0rld makew0rld Oct 3, 2020

Choose a reason for hiding this comment

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

Suggested change

This fixes a go fmt error. Make sure to run go fmt ./... on your code!

config/config.go Outdated Show resolved Hide resolved
config/config.go Outdated Show resolved Hide resolved
pniedzwiedzinski and others added 3 commits October 3, 2020 21:09
Co-authored-by: makeworld <25111343+makeworld-the-better-one@users.noreply.github.com>
Co-authored-by: makeworld <25111343+makeworld-the-better-one@users.noreply.github.com>
@makew0rld
Copy link
Owner

Thanks, this looks good! Congrats on being #100 :)

@makew0rld makew0rld merged commit 270dddf into makew0rld:master Oct 9, 2020
makew0rld added a commit that referenced this pull request Oct 9, 2020
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.

Parse XDG config file for user dirs
2 participants