raster pushed a commit to branch master.

commit 1bd06b4a8d4daee3d64e16e077e1826d6a371060
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date:   Mon Apr 22 00:31:22 2013 +0900

    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()); 

-- 

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter

Reply via email to