Use smart preloading in your snaps to avoid hard coded parts that wold fail security.
C CMake Shell
Pull request Compare This branch is 2 commits ahead, 36 commits behind sergiusens:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
CMakeLists.txt
README.md
preload.c
snapcraft-preload
snapcraft.yaml

README.md

Use

Add this as a part to your snapcraft.yaml:

parts:
    snapcraft-preload:
        source: https://github.com/sergiusens/snapcraft-preload.git
        plugin: cmake

And precede your apps entry like this:

apps:
    app-name:
        command: snapcraft-preload <binary>