diff options
| author | Lennart Poettering <lennart@poettering.net> | 2009-04-13 22:23:18 +0200 | 
|---|---|---|
| committer | Lennart Poettering <lennart@poettering.net> | 2009-04-13 22:23:18 +0200 | 
| commit | 20aba71d949472bb11c44cd79e2b0c230c20b0dc (patch) | |
| tree | 4f58284fbad3af3f79439a6e4696868ece29fe4e | |
| parent | 43650de1abb2c3edf7e26e83cec6cf9578422c2b (diff) | |
proplist-util: use pa_session_id() instead of accessing 7b816367b01393ed3e3e650047d78f6e-1239640487.203609-1061245823 directly
| -rw-r--r-- | src/pulsecore/proplist-util.c | 9 | 
1 files changed, 4 insertions, 5 deletions
| diff --git a/src/pulsecore/proplist-util.c b/src/pulsecore/proplist-util.c index af5f0aa6..eac8927c 100644 --- a/src/pulsecore/proplist-util.c +++ b/src/pulsecore/proplist-util.c @@ -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);          }      }  } | 
