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

Don't create .urlwatch if not necessary #42

Closed
kyrias opened this issue Feb 3, 2016 · 3 comments
Closed

Don't create .urlwatch if not necessary #42

kyrias opened this issue Feb 3, 2016 · 3 comments

Comments

@kyrias
Copy link

kyrias commented Feb 3, 2016

I move the config, url list, hooks file, and cache to other directories because I don't like having my home directory cluttered with dotdirectories unnecessarily, (consider implementing the XDG basedir spec instead..,) but urlwatch insists on creating the .urlwatch directory even if it isn't actually used.

@thp
Copy link
Owner

thp commented Feb 4, 2016

Yes, that's a good idea. It should use XDG on freedesktop.org-like systems, ~/Library/Application Support/ on OS X and %APPDATA% on Windows, but for compatibility with existing installations use ~/.urlwatch/ if it exists and the new location does not exist (if both exist, it can use the new location). New installations will also use the new location.

@jwilk
Copy link
Contributor

jwilk commented Feb 5, 2016

You might want to use appdirs to implement this.

@kyrias
Copy link
Author

kyrias commented Feb 5, 2016

Normally I'd say to just implement it yourself, since it's a tiny amount of code, but I guess if you want to support Windows it gets a lot more annoying to have to deal with.

jelly added a commit to jelly/urlwatch that referenced this issue Sep 5, 2017
Add support for XDG_CONFIG_DIR by adding a dependency to appdir while
keeping compatibility with the existing configuration location.

Closes: thp#42
jelly added a commit to jelly/urlwatch that referenced this issue Sep 5, 2017
Add support for XDG_CONFIG_DIR by adding a dependency to appdir while
keeping compatibility with the existing configuration location.

Closes: thp#42
jelly added a commit to jelly/urlwatch that referenced this issue Sep 5, 2017
Add support for XDG_CONFIG_DIR by adding a dependency to appdir while
keeping compatibility with the existing configuration location.

Closes: thp#42
jelly added a commit to jelly/urlwatch that referenced this issue Sep 7, 2017
Add support for XDG_CONFIG_DIR by adding a dependency to appdir while
keeping compatibility with the existing configuration location.

Closes: thp#42
jelly added a commit to jelly/urlwatch that referenced this issue Sep 8, 2017
Add support for XDG_CONFIG_DIR by adding a dependency to appdir while
keeping compatibility with the existing configuration location.

Closes: thp#42
@thp thp closed this as completed in #166 Sep 14, 2017
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

3 participants