The code that replaces "${SNAP}" by e.g. "/snap/firefox/1826" when installing the desktop file is there: https://github.com/snapcore/snapd/blob/master/wrappers/desktop.go#L208
// do variable substitution bline = bytes.Replace(bline, []byte("${SNAP}"), mountDir, -1)
I have submitted a pull request to use the "current" symlink (https://github.com/snapcore/snapd/pull/12132), let's see what snapd developers think about it.
The code that replaces "${SNAP}" by e.g. "/snap/ firefox/ 1826" when installing the desktop file is there: https:/ /github. com/snapcore/ snapd/blob/ master/ wrappers/ desktop. go#L208
// do variable substitution bline, []byte("${SNAP}"), mountDir, -1)
bline = bytes.Replace(
I have submitted a pull request to use the "current" symlink (https:/ /github. com/snapcore/ snapd/pull/ 12132), let's see what snapd developers think about it.