I have some data and I want to write it. I'm on Windows, but I want it to Linux, too.
In Windows, I'm used to use "%APPDATA%". There is one better way?
The answer to this is dependent on a lot of things.
1) What's the data used for?
2) What's your installation strategy?
3) Should the data be transparent to the user?
4) What are your security constraints?
Some packages also use /home/user/.program/ to store whatever (but I hate them for polluting my home).
I also find it cleaner to just use /etc/ for global configuration instead of /etc/xdg/. A lot of programs do this anyway.
That shouldn't make a difference.
You're not being very clear. If the standard directories aren't good for you tell us what you need, and maybe we can help.
I know what the link says, but fact is that Duoas's method is the norm for *nix. Most programs end up doing a hidden directory in the home folder, here is a screenshot from my home folder after making hidden files visible. Wine, Codeblocks, Desura, and many more do that.
The link is a nice one, but it does say, basically, 'try these $FOO directory variables first, and failing that, use the home folder in a prescribed way'.
I didn't know about the link. How likely is it that other nixen will tolerate or use the Free Desktop specs?