I have a script to toggle the mute state of the steamdeck:
`pactl set-sink-mute @DEFAULT_SINK@ toggle'
It works in desktop mode, it also works with the Quick Launch decky plugin (but damn the nested UI's on that plugin, ironic for the name Quick Launch. This one is much nicer.) but it doesn't work when launched with bash-shortcuts plugin.
I ran the script with the debug method in order to read the error which says permission denied. Now the script doesn't require sudo, but I tried a sudo workaround that I have on my other scripts that require it which I have working with bash-shortcuts.
echo '[password]' | sudo -S [command] but it still says permission denied.
Now interestingly if I do the debug method incorrectly and in the command LD_PRELOAD etc I target the original script instead of a LD_PRELOAD debug script that calls the original script it works correctly but it leaves konsole open.
I have a script to toggle the mute state of the steamdeck: `pactl set-sink-mute @DEFAULT_SINK@ toggle'
It works in desktop mode, it also works with the Quick Launch decky plugin (but damn the nested UI's on that plugin, ironic for the name Quick Launch. This one is much nicer.) but it doesn't work when launched with bash-shortcuts plugin.
I ran the script with the debug method in order to read the error which says permission denied. Now the script doesn't require sudo, but I tried a sudo workaround that I have on my other scripts that require it which I have working with bash-shortcuts.
echo '[password]' | sudo -S [command]
but it still says permission denied.Now interestingly if I do the debug method incorrectly and in the command LD_PRELOAD etc I target the original script instead of a LD_PRELOAD debug script that calls the original script it works correctly but it leaves konsole open.