[pulseaudio-discuss] [PATCH v2] core-util: Fail if XDG_RUNTIME_DIR belongs to someone else

Glenn Golden gdg at zplane.com
Sun Sep 21 09:41:17 PDT 2014


David Henningsson <david.henningsson at canonical.com> [2014-09-18 05:57:41 +0200]:
> >
> > It answers the original one, thanks.  Unfortunately (for you :) ) it
> > brings up yet another one (or actually, two related questions).
> 
> When all this is done, you'll write up a nice wiki page or blog post
> explaining it all, right? :-)
> 

To the extent that it can be fully plumbed in all its complicated glory,
yes. :)   A weekend-work in progress, though taking about 5x longer than
originally thought.  But it's coming along. Got a lot done the last couple
of weekends.

> 
> > Background: Here's the first portion of the list you supplied earlier after
> > looking thru the code (which, btw, I greatly appreciate, thanks):
> >
> >   1) Specified server(s) in the call to the pa_context_connect().
> >   2) Specified server(s) in PULSE_SERVER
> >   3) Specified server(s) in X11 property PULSE_SERVER
> >   4) Specified server(s) as in client.conf (the "default-server" key)
> >
> >First question: If the caller does supply NULL as the 'server' parm to
> >pa_context_connect(),
> 
> ...then that means, move on to step 2) in the list above.
> 
>	.
>	.
>	.

Yep, got it now, thanks.  Between your explanation here and building an 
instrumented version from git to dump c->server_list and a few other items,
I think I've finally got a reasonably clear handle on the whole of
pa_context_connect() and friends.

(And I should add that after having wandered thru the code a bit now, I
sympathize with your earlier footnote. :)

Btw, if it's of any use to the project, attached is a heavily commented version
of pa_context_connect(). That's what I'm using in the writeup as the basis
for both a high-level description and a more detailed discussion. (That 
commented version will be included in the writeup pretty much as-is.)

If you or Tanu have time to look thru it and let me know if any of the
commented understanding there is wrong, it would be greatly appreciated.

Thanks again for your time on this.

Glenn
-------------- next part --------------
A non-text attachment was scrubbed...
Name: commented_pa_context_connect.c
Type: text/x-c
Size: 6784 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20140921/4c3856a5/attachment.bin>


More information about the pulseaudio-discuss mailing list