pemistahl / chr

A command-line tool that gives information about Unicode characters
Apache License 2.0
40 stars 3 forks source link

save database in a standard-conforming path #1

Open alexmo1997 opened 3 years ago

alexmo1997 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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.

pemistahl commented 3 years ago

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. 👍