[RFC] XDG_RUNTIME_DIR
Lennart Poettering
mzkqt at 0pointer.de
Wed Nov 10 12:23:44 PST 2010
On Wed, 10.11.10 15:09, Bill Nottingham (notting at redhat.com) wrote:
> > TMPDIR influences tmpnam(), however that function kinda expects a common
> > /tmp namespace anyway, so redirecting this is not necessary.
> >
> > I think we shouldn't break assumptions about $TMPDIR, for example that
> > it might be useful for communicating with other people.
>
> Given that it's settable per-user, I'm not sure why you would
> rely on that aspect.
Hmm, that's a good point.
> > It's actually one of the things where I believe polyinstantiated /tmp is
> > actually going wrong: $TMP is shared between users, which has many
> > negative aspects, but also allows users to communicate with each other.
>
> The reason I ask is that I'd expect that apps would code their usage such
> that they'd do fallback from XDG_RUNTIME_DIR, to TMPDIR, to /tmp/<whatever>,
> and if we set TMPDIR to XDG_RUNTIME_DIR, the 'right' thing happens to the
> apps without patching. (For example, orbit and pulseaudio sockets are
> currently in $TMPDIR.)
Hmm, I guess setting TMPDIR to $XDG_RUNTIME_DIR/tmp or so would make
sense. Anybody else has an opionion about this?
Lennart
--
Lennart Poettering - Red Hat, Inc.
More information about the xdg
mailing list