http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html is a very interesting spec for user directories. It also provides good default values, except for
Now I am writing a soft that needs to create named pipes. It is a per-user client-server framework (there is a fifo for the server and a fifo per client).
XDG_RUNTIME_DIR is not defined, I am currently using a per-user subdirectory in
/tmp — but it does not ensure all the specified conditions (viz. the paragraph starting with "The lifetime of the directory MUST be bound to the user being logged in…")
/tmp/myserver-$USER good enough?
I saw elsewhere a few suggestions:
.is quite unsatisfactory (at least because it is not an absolute path).
- I also saw
/var/run/user/$USER— not bad, but that directory does not exist (at least on my box running a Debian testing)