win32: new PA files paths
authordimbor <i@dimbor.ru>
Thu, 3 Sep 2015 20:08:14 +0000 (23:08 +0300)
committerdimbor <i@dimbor.ru>
Thu, 3 Sep 2015 20:08:14 +0000 (23:08 +0300)
PulseAudio.cpp

index 613dd55d4fa23f879ccf33ae87ebae461f804982..66f17c669abb6818561ab43487189205ee71298e 100644 (file)
@@ -489,7 +489,8 @@ bool PulseAudio::AutoSpawn()
     int retry = 3;
     // On windows and mac, we do our own autospawn
     wxString piddir = ::wxGetHomeDir() + wxFileName::GetPathSeparator()
-        + wxT(".pulse") + wxFileName::GetPathSeparator()
+        + wxT(".config") + wxFileName::GetPathSeparator()
+        + wxT("pulse") + wxFileName::GetPathSeparator()
         + MachineID() + wxT("-runtime");
     wxString pidfile = piddir + wxFileName::GetPathSeparator() + wxT("pid");
     do {
@@ -511,10 +512,11 @@ bool PulseAudio::AutoSpawn()
         pacmd << wxFileName::GetPathSeparator() << wxT("bin")
             << wxFileName::GetPathSeparator() << wxT("pulseaudio");
 #  ifdef __WXMSW__
-        pacmd << wxT(".exe --exit-idle-time=-1 --log-target=file:")
+        pacmd << wxT(".exe --exit-idle-time=-1 --log-target=file:\"")
             << ::wxGetHomeDir() << wxFileName::GetPathSeparator()
-            << wxT(".pulse") <<  wxFileName::GetPathSeparator()
-            << wxT("pa.log");
+            << wxT(".config") << wxFileName::GetPathSeparator()
+            << wxT("pulse") <<  wxFileName::GetPathSeparator()
+            << wxT("pa.log\"");
 #  endif
         ::myLogTrace(MYTRACETAG, wxT("PulseAudio::AutoSpawn: trying to start '%s'"), pacmd.c_str());
 #  ifdef __WXMSW__