Fedora 36 up-to-date. $ uname -a Linux e4.eyal.emu.id.au 6.1.15-100.fc36.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Mar 3 17:22:46 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux I have a script running as root (using sudo) and in it I play a sound paplay /audio/ogg/beginning.ogg and it always worked. Then a few days ago it stopped and I now get an error. Something changed. $ sudo paplay /audio/ogg/beginning.ogg Connection failure: Connection refused pa_context_connect() failed: Connection refused $ sudo ogg123 -q /audio/ogg/beginning.ogg ALSA lib pulse.c:242:(pulse_connect) PulseAudio: Unable to connect: Connection refused === Could not load default driver and no driver specified in config file. Exiting. Is there a simple way to allow playing sounds in this context? TIA -- Eyal Lebedinsky (fedora@xxxxxxxxxxxxxx) _______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue