As per the XDG Base Directory specification, the data files downloaded from a device should be stored below $XDG_DATA_HOME (i.e. ~/.local/share) rather than below $XDG_CONFIG_HOME (~/.config).
The idea behind the specification is that someone could rm -rf ~/.config and still have a working system (albeit using the default configuration rather than any user-specific tweaks), but without losing any of their data. Running logs would count as user data.
Actually, it’s a bit more nuanced than this. The scripts and logs directories, and the downloaded .fit files, should be below $XDG_DATA_HOME. The per-device profile_version and authfile should potentially be below $XDG_CONFIG_HOME, but that’s more arguable either way.
As per the XDG Base Directory specification, the data files downloaded from a device should be stored below
$XDG_DATA_HOME(i.e.~/.local/share) rather than below$XDG_CONFIG_HOME(~/.config).The idea behind the specification is that someone could
rm -rf ~/.configand still have a working system (albeit using the default configuration rather than any user-specific tweaks), but without losing any of their data. Running logs would count as user data.Actually, it’s a bit more nuanced than this. The
scriptsandlogsdirectories, and the downloaded.fitfiles, should be below$XDG_DATA_HOME. The per-deviceprofile_versionandauthfileshould potentially be below$XDG_CONFIG_HOME, but that’s more arguable either way.