Forwarded from debian bug #561780
The esound compat module does not remove the socket path when compiled with per-user sockets. This leaves the system with empty /tmp/.esd-$UID/ folders.
The fix is simply to remove on line 505 the "&& !defined(USE_PER_USER_ESOUND_SOCKET)"
I sent a patch to the mailing list: http://thread.gmane.org/gmane.comp.audio.pulseaudio.general/20209
I didn't commit the patch right away, because apparently there's some reason behind the USE_PER_USER_ESOUND_SOCKET check, so I wanted to give other people a chance to comment on the patch first.
In the Debian bug there was a claim that if the directory already exists when pulseaudio starts, then pulseaudio startup would fail. That sounds unlikely (I'm sure there was some problem with the esound socket, but just the existence of the directory shouldn't be a problem).
-- GitLab Migration Automatic Message --
This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.
You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/issues/277.