From 1bd06b4a8d4daee3d64e16e077e1826d6a371060 Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Mon, 22 Apr 2013 00:31:22 +0900 Subject: [PATCH] oops - didnt fix pa RIGHT... now its fixed - detects pa native socket properly if its an XDG_RUNTIME dir. --- src/modules/mixer/pa.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/modules/mixer/pa.c b/src/modules/mixer/pa.c index a13b35e..f34316a 100644 --- a/src/modules/mixer/pa.c +++ b/src/modules/mixer/pa.c @@ -716,8 +716,9 @@ pulse_new(void) char *s; s = getenv("XDG_RUNTIME_DIR"); - buf = eina_stringshare_add(s); - if ((!s) || ((buf) && (stat(buf, &st)))) + if (s) snprintf(h, sizeof(h), "%s/pulse/native", s); + buf = eina_stringshare_add(h); + if ((!s) || (stat(h, &st))) { snprintf(h, sizeof(h), "/run/user/%i/pulse/native", (int)getuid()); -- 2.7.4