Comment 20 for bug 1964036

Revision history for this message
Olivier Tilloy (osomon) wrote :

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.