$SNAP not pointing to current

Hi guys,

I have recently started to work with snap and really like the idea of universal linux packages!

I have noticed that $SNAP is not pointing to current, but e.g. /snap/foobar/x2.
I think this is problematic for classic snaps. The value of $SNAP could end up in a configuration file and become invalid after an update.

Here the version that I am running:

snap    2.27.5
snapd   2.28.1
series  16
ubuntu  16.04
kernel  4.4.0-97-generic

Many thanks,

Hi Lukas,

The point of the variable is indeed to point to the real path, and not to the symlink.

If you want the symlink, it is available at:

$ echo $(dirname $SNAP)/current
1 Like