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

save database in a standard-conforming path #1

Open
alexmo1997 opened this issue Jan 28, 2021 · 3 comments
Open

save database in a standard-conforming path #1

alexmo1997 opened this issue Jan 28, 2021 · 3 comments
Labels
enhancement New feature or request
Milestone

Comments

@alexmo1997
Copy link

Currently, the database is saved in the home directory of the user, but it should probably be saved in a data directory, e.g. by using the data_dir() function in the directories crate.

@pemistahl
Copy link
Owner

Hi @alexmo1997, thanks for your request. What is wrong about saving the database in the user's home directory? In my opinion, this is a perfectly valid location for it.

@alexmo1997
Copy link
Author

It used to be done like that a lot, but in the last few years most programs have switched to using the standardized dirs. There are multiple reasons for that. e.g.

  • It keeps the home directory cleaner and managable
  • It simplifies backups
  • You always know where the files you are searching for are
  • It separates configs from cache files and data (like a unicode database)

@pemistahl
Copy link
Owner

I get your point. You are probably right, I will then switch to a more appropriate directory in the next release.

And thank you for trying my little tool. Very much appreciated. 👍

@pemistahl pemistahl added the enhancement New feature or request label Jan 29, 2021
@pemistahl pemistahl added this to the chr 1.1.0 milestone Jan 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants