chr icon indicating copy to clipboard operation
chr copied to clipboard

save database in a standard-conforming path

Open alexmo1997 opened this issue 4 years ago • 3 comments

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.

alexmo1997 avatar Jan 28 '21 20:01 alexmo1997

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.

pemistahl avatar Jan 29 '21 08:01 pemistahl

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)

alexmo1997 avatar Jan 29 '21 11:01 alexmo1997

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 avatar Jan 29 '21 17:01 pemistahl