News for hackers. Stuff that matters.
Re:Dotfiles being hidden is a UNIXv2 mistake (2012) by t-3 on Thursday August 11, 2022 @01:04PM (#32428723)
It's even worse with dotfiles nowadays than before. We have the cluttered "xdg" dotfile directories, and then a bunch of stuff makes random dotfiles/dotdirs in the home directory, and then .profiles/shellrcs/xinits that are basically required. Every single program seems to think you want a scrollback history, a configuration directory, or some random garbage to remind of you of that one time used it.
Re:Dotfiles being hidden is a UNIXv2 mistake (2012) by samatman on Thursday August 11, 2022 @01:22PM (#32428985)
Complying with the XDG standard seems about as good as a stringly typed OS like Unix can get.

Part of which is making sure that the defaults the program chooses may be overridden by consistent environment variables.

Programs need some way to persist their own state and configuration, after all.

The fact that XDG is more honored in the breach is tiresome, but this can at least be corrected, and it's well enough put together to be a steady-state approach to wrangling dotfiles.

Re:Dotfiles being hidden is a UNIXv2 mistake (2012) by nmz on Thursday August 11, 2022 @02:24PM (#32429802)
Windows fixed this by just having %APPDATA%, and to me, its a great idea. No .config, no .local, no .share, no .randomfile, each installed program has its directory in hidden directory, and nobody has to know what each directory is for, and sure, this is what ~/.config is for some, but I also see there's some stuff in ~/.local/share and so on.

To expand on this, when a program gets installed, it should write its binary location in a file, then if you ever erase it, a doesthisexistanymore $Config/dir/*/symlink | remove_entire_configuration_directory should be run via cron daily.

No manual cleanup, ever.

Re:Dotfiles being hidden is a UNIXv2 mistake (2012) by kodah on Thursday August 11, 2022 @05:14PM (#32431785)
Slight correction here, XDG keys are analogous to Windows standards: https://github.com/adrg/xdg/blob/master/README.md