Fwd: $XDG_RUNTIME_DIR

Colin Walters walters at verbum.org
Sun Jan 6 08:00:32 PST 2013


On Wed, 2012-12-05 at 16:21 +0100, David Faure wrote:

> if XDG_RUNTIME_DIR isn't set, mkdir /tmp/runtime-$USER,
> then ensure that it's owned by the user (otherwise bail out),
> then chmod to 0700 (and if that fails, bail out).

I'd at least include the kernel boot UUID or the DBus session bus UUID
in the name, so that you get the semantics that upon reboot, it's empty.




More information about the xdg mailing list