buggins / coolreader

Official site of CoolReader project. Sourceforge repository is obsolete.
GNU General Public License v2.0
386 stars 101 forks source link

XDG Base Directory on Linux #325

Open paolomi opened 2 years ago

paolomi commented 2 years ago

On Linux, in order to reduce the clutter in the user's home directory, coolreader should use the XDG Base Directory specification for its configuration directory.

For backwards compatibility, the configuration would be read initially from the current location (~/.cr3). If not found, it would be read from $XDG_CONFIG_HOME/cr3, with $XDG_CONFIG_HOME defaulting to $HOME/.config if not set.

Thanks a lot.

butyoutried commented 2 years ago

Yes, do it please.

elmuz commented 1 year ago

I also would appreciate this