Closed guihkx closed 9 months ago
Hi, the next version will follow the spec and there will be no backward compatibility.
XDG_CONFIG_HOME
is set and not empty -> $XDG_CONFIG_HOME/.csdm
XDG_CONFIG_HOME
is either not set or empty -> $HOME/.config/.csdm
Linux users can safely delete the old $HOME/.csdm
folder - there will be a note about it in the changelog.
Thanks
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.
👍 it will be ~/.config/csdm
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):
~/.csdm/settings.json
->$XDG_CONFIG_HOME/cs-demo-manager/settings.json
~/.csdm/logs/
->$XDG_STATE_HOME/cs-demo-manager/logs/
~/.csdm/tables/
->$XDG_STATE_HOME/cs-demo-manager/tables/
Describe alternatives you've considered
No response