Skip to content

Fix database behavior#5

Open
palb91 wants to merge 3 commits intocym13:masterfrom
palb91:fix_db
Open

Fix database behavior#5
palb91 wants to merge 3 commits intocym13:masterfrom
palb91:fix_db

Conversation

@palb91
Copy link
Copy Markdown

@palb91 palb91 commented Nov 6, 2019

Using the --database flag just print the help and exit with code 1 but no specific error.
This PR fix this issue and set a better default for the db (~/.config/tool is not a good place for data).
The standard is ~/.local/share/tool, checking the XDG_DATA_HOME env var first can help.

@cym13
Copy link
Copy Markdown
Owner

cym13 commented Nov 6, 2019

Thank you for noticing, I've opened issue #6 to track that bug. Unfortunately I cannot accept the PR at the moment: while I agree that .config wasn't the wisest choice moving it to .local/share would be a breaking change that I'm not willing to accept at the moment. I'd be glad to have the bug fix part though.

@palb91
Copy link
Copy Markdown
Author

palb91 commented Nov 6, 2019

Do you want 2 distinct PR?

@palb91
Copy link
Copy Markdown
Author

palb91 commented Nov 7, 2019

Removed the xdg stuff

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