jantman / python-wifi-survey-heatmap

A Python application for Linux machines to perform WiFi site surveys and present the results as a heatmap overlayed on a floorplan
GNU Affero General Public License v3.0
375 stars 88 forks source link

Paplay fails when running as sudo #28

Open metropt opened 2 years ago

metropt commented 2 years ago

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 commented 2 years ago

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

jantman commented 2 years ago

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

byteit101 commented 3 months ago

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

jantman commented 3 months ago

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