Thank you for trying out the feature. We have tried to make the parallel instances setup transparent for the applications. We expect the developers to use $SNAP_DATA
and $SNAP_COMMON
, but in the event that some snap is using a hardcoded the path to /var/snap/<snapname>/{common,<rev>}
, the mount namespace of a parallel installed snap is setup such that things should work seamlessly.
As described in Parallel Installs when you snap is named foo_bar
, then the following apply:
-
$SNAP_COMMON
is set to/var/snap/foo/common
and shows the content of/var/snap/foo_bar/common
-
$SNAP_DATA
is/var/snap/foo/<rev>
and shows the content of/var/snap/foo_bar/<rev>
If you need to know the instance key, there are $SNAP_INSTANCE_NAME
and $SNAP_INSTANCE_KEY
environment variables. HTH