News for hackers. Stuff that matters.
Re:Dijo: A terminal-based habit tracker written in Rust by p0llard on Monday July 20, 2020 @05:14PM (#23901979)
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.
Re:Dijo: A terminal-based habit tracker written in Rust by StavrosK on Monday July 20, 2020 @05:52PM (#23902286)
That's where it is for me, and not under ~/.config. It's a bit puzzling, because that's where I expected it to be.
Re:Dijo: A terminal-based habit tracker written in Rust by p0llard on Monday July 20, 2020 @06:26PM (#23902531)
In 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.

Re:Dijo: A terminal-based habit tracker written in Rust by StavrosK on Monday July 20, 2020 @06:28PM (#23902544)
Fair enough, I guess this is actual program data rather than the config, you're right.