akiver / cs-demo-manager

Companion application for your Counter-Strike demos.
https://cs-demo-manager.com
MIT License
1.44k stars 195 forks source link

[Linux] Follow the XDG Base Directory Specification #655

Closed guihkx closed 9 months ago

guihkx commented 11 months ago

What problem is this solving

Right now, CSDM saves its data files in ~/.csdm, not following the XDG Base Directory Specification.

Proposed solution

To retain backward compatibility, we should first check if ~/.csdm exists and just use that if it does.

Otherwise, I propose migrating to the following paths (old, new):

Describe alternatives you've considered

No response

akiver commented 10 months ago

Hi, the next version will follow the spec and there will be no backward compatibility.

Linux users can safely delete the old $HOME/.csdm folder - there will be a note about it in the changelog.

Thanks

guihkx commented 10 months ago

Thank you very much for working on this, @akiver.

However, I must say that having nested dot folders (which are, essentially, two hidden folders) is not a thing that most programs do on Linux.

May I ask why not simply make it ~/.config/csdm instead of ~/.config/.csdm?

Thanks.

akiver commented 10 months ago

👍 it will be ~/.config/csdm