News for hackers. Stuff that matters.
Re:The creeping scourge of tooling config files in project r... by wqsz7xn on Wednesday August 05, 2020 @08:49PM (#24067159)
On another note can we talk about the amount of projects that just dump their config/log files in the root directory as a 'hidden' file when you start them? Why? we have a .config for a reason.
Re:The creeping scourge of tooling config files in project r... by Macha on Wednesday August 05, 2020 @10:00PM (#24067480)
Thankfully more and more projects are moving to respecting XDG_CONFIG_DIR:

The holdouts fall into the following categories:

1. Projects where the author doesn't care but would take a PR.

2. "My tool is super simple and I don't want to complicate it to read env vars or have platform specific config"

3. Projects which value cross platform consistency over consistency with the platform (tmux, though the next version does budge a little)

4. Projects which consider XDG as just "some desktop Linux thing" and don't consider themselves as caring about desktop that much or just that they predate XDG (SSH)

5. Projects who mix runtime and config and cached data in a single directory and don't want to split them out for proper XDG support.

The ArchWiki probably has the best centralised tracking of attempts to get XDG support implemented: https://wiki.archlinux.org/index.php/XDG_Base_Directory

Re:The creeping scourge of tooling config files in project r... by PudgePacket on Thursday August 06, 2020 @03:28AM (#24068847)
6. Authors who haven't heard of XDG_CONFIG_DIR.
Re:The creeping scourge of tooling config files in project r... by ironmagma on Wednesday August 05, 2020 @08:58PM (#24067215)
I think it’s so that all the configs float to the top and get out of the way. Agree that it’s annoying though.
Re:The creeping scourge of tooling config files in project r... by benrbray on Wednesday August 05, 2020 @08:53PM (#24067179)
Do you mean the system-level config folder? Won't that cause problems when A) you rename / move a folder or B) copy a folder to a different computer?
Re:The creeping scourge of tooling config files in project r... by marcosdumay on Wednesday August 05, 2020 @09:19PM (#24067317)
Nope, he means the "new" LSB preferred directory for user-level configurations. "New" being quoted here because it's around a decade old already.
Re:The creeping scourge of tooling config files in project r... by LukeShu on Wednesday August 05, 2020 @10:02PM (#24067498)
Nit: ~/.config is specified by XDG, not by LSB.

But yeah, the most recent revision of the XDG basedir spec is dated November 2010; we've had it for a decade.