3 ms·
I haven't run this, so perhaps the behaviour is different to what I'm expecting, but since it uses `XDG_DATA_HOME` (`data_dir` in the `directories` crate) I'd e
by p0llard 6y ago
I haven't run this, so perhaps the behaviour is different to what I'm expecting, but since it uses `XDG_DATA_HOME` (`data_dir` in the `directories` crate) I'd expect it to appear as
/home/alice/.local/share/dijo/habit_record.json
on XDG compliant Linux.
- StavrosK 6y agoThat's where it is for me, and not under ~/.config. It's a bit puzzling, because that's where I expected it to be.
- p0llard 6y agoIn general ~/.config is only for config; data should be in ~/.local/share, but a lot of programs get this wrong and abuse ~/.config using it for everything. Even worse are the programs which use it to cache runtime data; I should be able to add the entire ~/.config to a dotfiles repo without accidentally including personal data (other than that which might reasonably appear in a config file) or ephemeral data.
- StavrosK 6y agoFair enough, I guess this is actual program data rather than the config, you're right.