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

It’s a LAZY place to store user data that works across platforms.

FTFY.

If you don’t want to follow the spec, keep your program’s data in your program’s directory. If another program needs the data it can follow the $PATH, or ask the user.

Even better, ask the user at first run. You know, when asking people to accept some Byzantine EULA, license, and permission to track their grandmother.



Your program is installed in /usr/bin—you can't write to that directory (nor should you).




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

Search: