Hacker News new | ask | show | jobs
by jeroenhd 1377 days ago
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.

2 comments

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.