[pulseaudio-tickets] [PulseAudio] #928: use g_get_user_runtime_dir
PulseAudio
trac-noreply at tango.0pointer.de
Fri Apr 1 04:08:33 PDT 2011
#928: use g_get_user_runtime_dir
----------------------+-----------------------------------------------------
Reporter: mccann | Owner: lennart
Type: defect | Status: closed
Milestone: | Component: daemon
Resolution: wontfix | Keywords:
----------------------+-----------------------------------------------------
Changes (by coling):
* status: new => closed
* resolution: => wontfix
Comment:
Pulseaudio has no glib dependency in the core, so this is not an option.
Besides, according to the docs, this will effective return the results of
the env vars XDG_RUNTIME_DIR, and fall back to XDG_CACHE_HOME.
On my system these are both blank:
{{{
[colin at jimmy ~]$ echo $XDG_RUNTIME_DIR
[colin at jimmy ~]$ echo $XDG_CACHE_HOME
}}}
Add to that, that we need to deal with NFS issues (i.e. TMPDIR should not
be inside $HOME for NFS mounts - it's the systems responsibility to do
that).
Add to that, when using shared dirs (i.e. /tmp) we need to make sure some
other user cannot DoS us by stealing our folders etc. etc. So the logic
that goes on top of things here is non-trivial and simply calling the the
above function would still need lots of additional logic on top and would
also be redundant on my system.
I'd be happy enough to use more XDG friendly paths, but like I say, we
cannot use any glib functions here.
Patches welcome but until then, I'll close this report (tho' that is not
to say it's a not a good idea!)
--
Ticket URL: <http://pulseaudio.org/ticket/928#comment:1>
PulseAudio <http://pulseaudio.org/>
The PulseAudio Sound Server
More information about the pulseaudio-bugs
mailing list