In the provided example, the suffix is omitted because the application name (kbruch) matches the snap name. If we rename the snap to something else and build the package, the line in the desktop file becomes:
$ snapcraft --destructive-mode Pulling kbruch Building kbruch Staging kbruch Priming kbruch Snapping 'somethingelse' | Snapped somethingelse_18.12.1_amd64.snap $ grep Exec prime/meta/gui/kbruch.desktop Exec=somethingelse.kbruch %U
which I believe is the expected behavior for rewriting desktop entries. Am I missing something?
In the provided example, the suffix is omitted because the application name (kbruch) matches the snap name. If we rename the snap to something else and build the package, the line in the desktop file becomes:
$ snapcraft --destructive-mode 18.12.1_ amd64.snap gui/kbruch. desktop lse.kbruch %U
Pulling kbruch
Building kbruch
Staging kbruch
Priming kbruch
Snapping 'somethingelse' |
Snapped somethingelse_
$ grep Exec prime/meta/
Exec=somethinge
which I believe is the expected behavior for rewriting desktop entries. Am I missing something?