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

David Henningsson david.henningsson at canonical.com
Wed Sep 17 01:47:09 PDT 2014



On 2014-09-17 02:38, Glenn Golden wrote:
> David Henningsson <david.henningsson at canonical.com> [2014-09-16 08:02:50 +0200]:
>>>
>>> In 5b-c, is it possible that XDG_RUNTIME_DIR was intended?
>>
>> Yes, I meant XDG_RUNTIME_DIR. Sorry for the typo.
>>
>
> No problem, just wanted to be sure, thanks for clarifying.
>
> But just to prove that no good deed goes unpunished, :) I'll pester you with
> yet another question:
>
> Can you describe what pieces of information the pa_context_connect() API
> function takes into account in determining (or guessing at) the server?
>
> The motivation for this question is that I'm wondering if this function is
> the means by which a commandline option like "--server=XXXX" is handled
> (e.g., by the caller providing "XXXX" to the function as a potential
> candidate server, to be decided upon in addition to other pieces of info...) ?

If you give a "--server" argument to pactl, pactl passes that argument 
unchanged when it calls pa_context_connect(), hence the command line 
argument falls under point 1) in my list, for pactl.

Other applications might do things differently, e g by having a dialog 
box where you can configure the server name, and some are probably 
always passing NULL out of simplicity or laziness. Does that answer your 
question?


-- 
David Henningsson, Canonical Ltd.
https://launchpad.net/~diwic


More information about the pulseaudio-discuss mailing list