chr
chr copied to clipboard
save database in a standard-conforming path
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.
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.
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)
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. 👍