Bash script hotkey only working when system preferences is active
I've made a bash script for swapping audio interfaces.
It works perfectly when fired up from terminal.
Next i used automator to make it into a service so i can assign a hotkey to it.
If i start the service from automator it works.
After i assigned the hotkey it will only work when system preferences is active, otherwise i get an "operation not permitted" error.
What am i doing wrong here?
Windows