Hacker News new | ask | show | jobs
by iforgotpassword 1371 days ago
If at least all new config files etc would be put in ~/.config/ et al, but there is still new dotfiles being dropped in ~.

Looking at you, wget and your .hsts-something file.

1 comments

I went through https://wiki.archlinux.org/title/XDG_Base_Directory#Partial and set all the bullshit env variables in my .profile to force some programs to comply (not that it fixes everything).

I've seriously considered writing a system LD_PRELOAD that catches resolved paths and redirects them to a directory of choice.

Good news! This already exists as libetc[0]

[0]: http://ordiluc.net/fs/libetc/

Amazing, I love it! Thanks for the link!
I like this! It the type of chaotic good we appreciate on HN ;)

But I think it would be easier if you instead sent MR to offending projects

Sadly, most of the software I use already has a link in the list to an issue someone made about XDG support and often developers don't care, actively choose not to respect the user's preferences (snap, for one) or don't want to change the location out of fear of breaking compatibility. Those MRs would probably become forks in practice.