Description: I have written a small rc script to run pulseaudio in system-wide mode using the following parameters (see Output). After upgrading pulseaudio a few weeks ago I noticed that pulseaudio cannot be started again in system-wide mode. I didn't have time at that time to test some things to get more information so I haven't reported it until today. Note: I know that running pulseaudio in system-wide mode is not recommended except in some cases. Output: ``` # pulseaudio -D --system --disallow-module-loading --disallow-exit N: [(null)] main.c: Running in system mode, forcibly disabling SHM mode. N: [(null)] main.c: Running in system mode, forcibly disabling exit idle time. E: [(null)] main.c: Daemon startup failed. # tail -3 /var/log/messages Sep 6 14:57:17 dtxdf-test pulseaudio[19404]: [(null)] main.c: Home directory of user 'pulse' is not '/var/local/run/pulse', ignoring. Sep 6 14:57:17 dtxdf-test pulseaudio[19404]: [(null)] caps.c: Normally all extra capabilities would be dropped now, but that's impossible because PulseAudio was built without capabilities support. Sep 6 14:57:17 dtxdf-test pulseaudio[19404]: [(null)] core-util.c: Failed to create secure directory (/var/local/lib/pulse): Permission denied ```
localstatedir may be bad. Excerpts from phase:configure Message: ---{ pulseaudio 16.1 }--- prefix: /usr/local bindir: /usr/local/bin libdir: /usr/local/lib libexecdir: /usr/local/libexec mandir: /usr/local/man datadir: /usr/local/share sysconfdir: /usr/local/etc localstatedir: /var/local modlibexecdir: /usr/local/lib/pulseaudio/modules alsadatadir: /usr/local/share/pulseaudio/alsa-mixer System Runtime Path: /var/local/run/pulse System State Path: /var/local/lib/pulse System Config Path: /var/local/lib/pulse Bash completions directory: /usr/local/share/bash-completion/completions Zsh completions directory: /usr/local/share/zsh/site-functions Compiler: clang 13.0.0 Enable pulseaudio daemon: true Enable pulseaudio client: true