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 base dirs? #20

Closed
dschep opened this issue Feb 12, 2016 · 6 comments
Closed

XDG base dirs? #20

dschep opened this issue Feb 12, 2016 · 6 comments

Comments

@dschep
Copy link
Owner

dschep commented Feb 12, 2016

Should I use XDG Base dirs for the config? EG: ~/.config/ntfy/ntfy.yml instead of ~/.ntfy.yml. Use ~/Library/Appplication Support/ntfy/ntfy.yml on Mac? Windows???

ref: http://stackoverflow.com/questions/3373948/equivalents-of-xdg-config-home-and-xdg-data-home-on-mac-os-x

@danryder
Copy link
Contributor

What are the pros? Is this like the new hotness for config files?

To me seems like overkill (but maybe I missed the point)

If it's to support multiple targets, I'd rather have the concept of targets
within a single config so I don't have to repeat credentials and maintain
them in multiple places

On Fri, Feb 12, 2016 at 4:31 PM, Daniel Schep notifications@github.com
wrote:

Should I use XDG Base dirs for the config? EG: ~/.config/ntfy/ntfy.yml
instead of ~/.ntfy.yml. Use ~/Library/Appplication Support/ntfy/ntfy.yml
on Mac?

ref:
http://stackoverflow.com/questions/3373948/equivalents-of-xdg-config-home-and-xdg-data-home-on-mac-os-x


Reply to this email directly or view it on GitHub
#20.

@dschep
Copy link
Owner Author

dschep commented Feb 12, 2016

Cleaner home dir & more up to date conventions, nothing to do with our discussions around multiple targets and just using multiple configs. I probably won't ever implement this 😛

@jungle-boogie
Copy link
Contributor

I support this for two reasons:

  1. cleaner home dir
  2. Those that backup ./config won't have to also include .ntfy

Thanks for the consideration!

@dschep
Copy link
Owner Author

dschep commented Feb 13, 2016

Duly noted @jungle-boogie. I guess ntfy could just support both XDG(or other OS equivalents) and ~/.ntfy.yml locations. With.. the XDG style taking precedence i guess since it's more "correct."

@tjbenator
Copy link
Contributor

+1

@dschep dschep closed this as completed in e01c65d Feb 20, 2016
@dschep
Copy link
Owner Author

dschep commented Feb 20, 2016

Note, the solution merged in e01c65d retains backwards compatibility with ~/.ntfy.yml config files, but prefers OS specific locations (such as ~/.config/ntfy/ntfy.yml on Linux).

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

No branches or pull requests

4 participants