Commands in shell script launched from a snap

I have a bash shell script launched from a snap (firefox, triggered when a mailto: link is clicked). This starts OK with firefox in classic mode. Problem is I cannot get the script to run any commands, “No such file or directory” is returned. I have tried absolute and relative paths and have played with $PATH. Nothing seems to work. The script works fine when run from the command line. I’m running Ubuntu 24.04.1 LTS, Firefox 131.0.3, Thunderbird 128.3.1esr.

1 Like

You may search examples from a search engine by adding the string: intitle:snapcraft.yaml site:github.com

Posting your snap may have help.