jantman/python-wifi-survey-heatmap

Paplay fails when running as sudo

metropt opened this issue · 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.

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

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