I am trying to launch a custom script with “the button” feature, but I am having some problems. I think that there are related to the user or the shell options…
This is the situation:
I have a custom script, like this:
whoami > /tmp/log
sooperlooper >> /tmp/log 2>&1
I have configure /etc/pisound.conf in order to launch my script when I CLICK_1
Then, I launch tail -f /tmp/log and read the logs. This is the log:
exec of JACK server (command = “#!/bin/sh”) failed: no such file or directory
cannot connect to jack
cannot initialize sooperlooper.
I am not sure what is the problem, but su patch && whoami == root it is strange for me.
I supose that root is not be able to launch sooperlooper or root has not launched a shell and then can exec /bin/sh…
Any idea about how to launch a custom button script as a normal user?
(When I launch my custom script from my patch user shell it works correctly).