proplist-util: use pa_session_id() instead of accessing 7b816367b01393ed3e3e650047d78f6e-1239640487.203609-1061245823 directly

This commit is contained in:
Lennart Poettering 2009-04-13 22:23:18 +02:00
parent 43650de1ab
commit 20aba71d94

View file

@ -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);
}
}
}