Hello I am trying to expose a Snap service by writing an existing service file into the Snapcraft friendly format (YAML). I have checked the Snapcraft app and service metadata documentation but found out the following common service parameters missing in it.
I think this example doesn’t solve my issue. I want Snap to get the environment variable value from a file which will be written during the install hook. To get a clearer picture I want to run a few calculations during install time for every user and set its result as an environment variable to my Snap service. Is this possible?
Thanks I am exporting variables from command-chain wrapper script hoping that these will be available during the execution snap service. Also just to confirm this wrapper script will be run from $SNAP as working directory right?