oops - didnt fix pa RIGHT... now its fixed - detects pa native socket

properly if its an XDG_RUNTIME dir.
This commit is contained in:
Carsten Haitzler 2013-04-22 00:31:22 +09:00
parent de187284fc
commit 1bd06b4a8d
1 changed files with 3 additions and 2 deletions

View File

@ -716,8 +716,9 @@ pulse_new(void)
char *s; char *s;
s = getenv("XDG_RUNTIME_DIR"); s = getenv("XDG_RUNTIME_DIR");
buf = eina_stringshare_add(s); if (s) snprintf(h, sizeof(h), "%s/pulse/native", s);
if ((!s) || ((buf) && (stat(buf, &st)))) buf = eina_stringshare_add(h);
if ((!s) || (stat(h, &st)))
{ {
snprintf(h, sizeof(h), "/run/user/%i/pulse/native", snprintf(h, sizeof(h), "/run/user/%i/pulse/native",
(int)getuid()); (int)getuid());