Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You might try convincing projects to adopt the XDG spec[1] instead, might be easier.

Might be.

I've been trying something similar using Apple's framework bundle layout[2] and using XDG to point config files to ~/Library/ApplicationSupport etc, but programmers know better! Just spray whatever files you need into my home dir, developers, be my guest…

[1] https://specifications.freedesktop.org/basedir-spec/latest/a...

[2] https://developer.apple.com/library/archive/documentation/Ma...



Best way to make dev do that is to make it easy for them.

E.G: I used to "spray my files in the home dir" for my apps, until I discovered "appdirs" (https://pypi.org/project/appdirs/1.4.0/). Once I had an easy way to always has a clean and correct path for my app config/data/tmp file, I just used it.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: