I can not solve the problem with pactl, I have some pactl comand in my sh file and I must start this file as root. But pactl comand do not work with root. I try to write sudo -u $USER and a lot of differnt variants with differnt groups and users but it still does not work
Asked
Active
Viewed 454 times
1
sudo -u some_user pactlweon't work - PulseAudio uses DBus, and you'd need to usedbus-launchor otherwise guidepactlto the existing DBus session for it work. – muru Mar 08 '21 at 14:29plugdevgroup. – muru Mar 08 '21 at 15:11/dev/input/input*. Runls -l /dev/input/input*to which group those files being to. I don't have a system on hand to check, but I think they should be owned byplugdevlike in https://unix.stackexchange.com/a/242224/70524 – muru Mar 08 '21 at 15:32