Hacker News new | ask | show | jobs
by jeroenhd 1371 days ago
Same thing with Linux though, my home directory is cluttered with dotfiles and hardcoded paths because people either haven't bothered to look for a standard (XDG exists) or give you the middle finger and choose to do whatever they want anyway. Snap is probably the worst of these products.

You're pulling in a 400 megabytes of dependencies the second you touch cross platform GUIs, a library to automatically create and pick the right appdata folder really isn't that inconvenient at this point.

1 comments

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.

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.