#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@jimmy ~]$ echo $XDG_RUNTIME_DIR

 [colin@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
_______________________________________________
pulseaudio-tickets mailing list
pulseaudio-tickets@mail.0pointer.de
https://tango.0pointer.de/mailman/listinfo/pulseaudio-tickets

Reply via email to