dolt icon indicating copy to clipboard operation
dolt copied to clipboard

XDG BaseDir support

Open ptman opened this issue 4 years ago • 3 comments

https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html

by default, move ~/.dolt/ to ~/.config/dolt/

ptman avatar Mar 08 '21 11:03 ptman

This would be a messy change for us me thinks. But thanks for the report. Will keep it open.

timsehn avatar Mar 13 '21 17:03 timsehn

We can consider this for dolt 1.0, which will also include other breaking changes. Leaving this open to document the fact that we don't conform to this spec right now.

zachmu avatar Aug 11 '21 23:08 zachmu

Well, seems like it didn't make it into 1.0. Oh well.

But I really do not understand, what can be messy about this. You are not required to completely axe ~/.dolt, you can still fallback to it. Just prefer ~/.config/dolt[^1] if ~/.dolt does not exist.

This is what git does: https://github.com/git/git/blob/3857aae53f3633b7de63ad640737c657387ae0c6/config.c#L2019-L2025

[^1]: Well, to be pedantic, it's more like if $XDG_CONFIG_HOME then $XDG_CONFIG_HOME/dolt else ~/.config/dolt, but you get the idea.

SandaruKasa avatar Sep 28 '24 10:09 SandaruKasa