I’m having problems with environment paths in my snap.
I need to manually declare certain paths for an app to work in my snap, but it’s the path itself that is troublesome.
For example, this app:
inspect: command: gst-inspect-1.0 environment: LD_LIBRARY_PATH: $LD_LIBRARY_PATH:$SNAP/home/ubuntu/mysnaps/snaps/parts/tis/install/usr/lib/aarch64-linux-gnu/gstreamer-1.0:$SNAP/lib/tcam-0 GST_PLUGIN_PATH: $SNAP/usr/lib/aarch64-linux-gnu/gstreamer-1.0:$SNAP/home/ubuntu/mysnaps/snaps/parts/tis/install/usr/lib/aarch64-linux-gnu/gstreamer-1.0:$SNAP/lib/tcam-0 GST_PLUGIN_SYSTEM_PATH : $SNAP/usr/lib/aarch64-linux-gnu/gstreamer-1.0 GST_PLUGIN_SCANNER: $SNAP/usr/lib/aarch64-linux-gnu/gstreamer1.0/gstreamer-1.0/gst-plugin-scanner
As you can see, it has $SNAP/home/ubuntu and even goes so far as having aarch64-linux-gnu in the paths.
This is making it hard to build for different architectures, as I need a snap per architecture, and for the home paths, it means that I got to make sure that every computer it’s built on has it. I am assuming the build service wont work either.
Any help to make these paths functional, but build computer agnostic would be fantastic!
What am I doing wrong?