OpenVoiceOS/ovos-installer

PipeWire and PulseAudio both installed

goldyfruit opened this issue · 1 comments

Installer fails to detect sound system because both PipeWire and PulseAudio are installed on the system.

[done]
+ detect_sound
+ echo -ne '➤ Detecting sound server... '
➤ Detecting sound server... ++ pgrep -a -f pulse
++ awk -F/ '{ print $NF }'
+ [[ pipewire-pulse
pulseaudio =~ pulse ]]
+ '[' -S /run/user/1000/pulse/native ']'
+ '[' '!' -S /mnt/wslg/PulseServer ']'
+ export PULSE_SERVER=/run/user/1000/pulse/native
+ PULSE_SERVER=/run/user/1000/pulse/native
+ command -v pactl
++ awk -F: '$1 ~ /Server Name/ { print $2 }'
++ pactl info
++ sed 's/^ *//'
Connection failure: Access denied
+ SOUND_SERVER=
+ export SOUND_SERVER
+ echo -e '[\e[32mdone\e[0m]'
[done]

Processes:

pi           626  0.0  0.1  27956  7952 ?        S<sl Jan17   0:00  \_ /usr/bin/pipewire-pulse
pi           628  2.4  0.3 349052 24076 ?        S<sl Jan17 105:38  \_ /usr/bin/pulseaudio

The installer must stop with a clear message when this edge situation is detected.

Fixed by 0ed0551 and PipeWire will be the default.