python-wifi-survey-heatmap icon indicating copy to clipboard operation
python-wifi-survey-heatmap copied to clipboard

Paplay fails when running as sudo

Open metropt opened this issue 2 years ago • 4 comments

When running the script as root it fails to play the sound:

Connection failure: Connection refused
pa_context_connect() failed: Connection refused

It looks like it is not possible to run paplay with sudo.

metropt avatar Nov 03 '22 15:11 metropt

I changed the subprocess.call with playsound https://pypi.org/project/playsound/ if you think it is ok I can submit a merge request.

metropt avatar Nov 03 '22 15:11 metropt

Yeah, I'd be very happy if you submit a pull request for that. Thanks!

jantman avatar Nov 07 '22 11:11 jantman

Just here to comment that this is still an issue in 2024

byteit101 avatar Aug 10 '24 02:08 byteit101

Still waiting on someone who cares enough to submit a PR.

jantman avatar Aug 10 '24 13:08 jantman