I have a snap with “personal-files” permissions granted for reading and writing to a specific directory. I would like to have execution rights granted to that directory, as well, so I can run specific scripts or other utilities that live in that location outside of the snap. It looks “personal-files” only includes “read” and “write” as options, though. Is there any way to add execution permissions for the same directory?
No, there is no such opportunity and it would break the security model, snaps can only execute things from places they explicitly own ($SNAP, $SNAP_DATA, $SNAP_COMMON, $SNAP_USER_DATA and $SNAP_USER_COMMON) …
What you could try would be to have a wrapper around your app that copies said scripts into $SNAP_USER_COMMON at first run of the app and run them from there …
This indeed impacts the launch speed of your app, depending on the amount and size of these scripts. It would also require to check things regularly in case the source of the script can change, though you could likely do something with rsync to sync changes when they show up.
Ok, thanks for the quick confirmation. I suspected this was by design and not open to change, but I wanted to double check before taking a different approach.