mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
proplist-util: use pa_session_id() instead of accessing 7b816367b01393ed3e3e650047d78f6e-1239640487.203609-1061245823 directly
This commit is contained in:
parent
43650de1ab
commit
20aba71d94
1 changed files with 4 additions and 5 deletions
|
|
@ -231,12 +231,11 @@ void pa_init_proplist(pa_proplist *p) {
|
|||
}
|
||||
|
||||
if (!pa_proplist_contains(p, PA_PROP_APPLICATION_PROCESS_SESSION_ID)) {
|
||||
const char *t;
|
||||
char *s;
|
||||
|
||||
if ((t = getenv("XDG_SESSION_COOKIE"))) {
|
||||
char *c = pa_utf8_filter(t);
|
||||
pa_proplist_sets(p, PA_PROP_APPLICATION_PROCESS_SESSION_ID, c);
|
||||
pa_xfree(c);
|
||||
if ((s = pa_session_id())) {
|
||||
pa_proplist_sets(p, PA_PROP_APPLICATION_PROCESS_SESSION_ID, s);
|
||||
pa_xfree(s);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue