You are not logged in.
I have the following udev entry:
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="20b1", ATTR{idProduct}=="30a0", RUN+="/etc/apulse-on.sh"When the USB device is detected the following script is executed:
#!/bin/bash
systemctl start spotifyd &
systemctl start shairport-sync &
systemctl start triggerhappy &
systemctl start mpd &
aplay /root/a.wav &This successfully starts the daemons, but the aplay command doesn't produce sound. When I execute the script myself as a command line it does play the sound. But not when executed as a udev rule. Any idea why is that? Thank you.
Offline
Offline