Comment 23 for bug 1824255

Revision history for this message
Ian Johnson (anonymouse67) wrote :

Sorry if I filed this bug poorly, but the original problem I had with this bug is that no hooks had environment setup for them, whether they were trampoline style hooks generated by a part or not. That's the bug I care about, it's fine to have hooks generated by a part for me, I just want them to have the same environment as apps.

I have no opinion on whether or not snaps should use command-chain for this or generate trampoline shell scripts, etc. I just thought that command-chain would be an easy way to do this.

I also have no (strong) opinion on what the behavior should be for hooks that are placed directly in snap/hooks (i.e. are not trampoline style hooks).

Really to me, the issue was that using a modern snapcraft as a snap, I had no way to tell snapcraft that I want my hooks to have their environment setup.