Comment 4 for bug 1876370

Revision history for this message
Alberto Donato (ack) wrote :

The shebang for "snap-helpers" itself is "#!/usr/bin/env python3".

The files created by "snap-helpers write-hooks" are bash scripts that get placed in snap/hooks, with the following content:

#!/bin/sh
exec "$SNAP/snap/command-chain/snapcraft-runner" \\
    "$SNAP/bin/snap-helpers-hook" "{hookname}"

"snap-helpers-hook" is a python script, with "#!/usr/bin/env python3" shebang as well. (those scripts are standard package entry_points that get installed as dependencies of a python part).