tedsmith / quickhash

Graphical cross platform data hashing tool for Linux, Windows and Mac
http://www.quickhash-gui.org
GNU General Public License v2.0
368 stars 37 forks source link

Save QHConfig.xml in hidden directory #113

Closed darealshinji closed 11 months ago

darealshinji commented 11 months ago

The config file QHConfig.xml is saved into the current working directory. It would make more sense to save it into a specific config directory, like ~/.config/ on Linux.

darealshinji commented 11 months ago

Don't set the filename explicitly!

TXMLPropStorage has a default handler if you don't set a FileName.

    Under Windows the settings will be saved in the application directory as PROGRAMNAME.xml.
    Under Unix/Linux/macOS it will be saved in the home directory of the current user as .PROGRAMNAME

It is therefore a very good idea to leave the filename blank for unix programs meant to be run by normal users. 

https://wiki.lazarus.freepascal.org/TXMLPropStorage#Notes