OpenVoiceOS / ovos-installer

Open Voice OS and/or HiveMind installer using Ansible with an intuitive and easy Text-based User Interface
https://www.openvoiceos.org
48 stars 13 forks source link

PipeWire and PulseAudio both installed #46

Closed goldyfruit closed 5 months ago

goldyfruit commented 5 months ago

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.

goldyfruit commented 5 months ago

Fixed by https://github.com/OpenVoiceOS/ovos-installer/commit/0ed055113e0623ab9cae2d37e6e6e7e4a985463a and PipeWire will be the default.