desktop file Exec mangling broken
Metadata
Current evaluation
Closed as a non-issue: Snapcraft omits the app suffix when snap and app names match; renaming the snap produced the documented Exec=somethingelse.kbruch %U.
Resolution: closed not a bug
Reason: In the closing 2019-03-29 discussion, maintainer ~cmatsuoka demonstrated that matching names produce Exec=kbruch %U, while a different snap name produces Exec=somethingelse.kbruch %U. The reporter agreed the behavior matched the documentation, so no code change was made.
Evaluated by: mr-cal-bot
No scores available.
Issue body
According to https://docs.snapcraft.io/the-snap-format/698 the Exec line of desktop files should be in the form $snap.$app. Snapcraft apparently doesn't mangle desktop files it picks up via `apps.$app.desktop` or appstream magic though.
Example https://github.com/apachelogger/snap-appstreamtest
```
➜ grep Exec prime/meta/gui/kbruch.desktop
Exec=kbruch %U
```
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed not a bug | Closed as a non-issue: Snapcraft omits the app suffix when snap and app names match; renaming the snap produced the documented Exec=somethingelse.kbruch %U. | |
| stealth/space-bunny-alpha | — | closed not a bug | Closed as a non-issue: the app suffix is omitted when the app and snap names match; renaming the snap produces Exec=somethingelse.kbruch %U. | |
| stealth/space-bunny-alpha | — | closed stale | Closed without a recorded fix, implementation, or maintainer explanation after reporting unmangled desktop Exec entries. | |
| qwen/qwen3.6-35b-a3b | — | — | Snapcraft failed to mangle desktop file Exec lines to the required $snap.$app format. The issue was closed without a fix or resolution, remaining abandoned. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without resolution. Snapcraft failed to mangle desktop file Exec lines to the $snap.$app format, leaving them unmodified. No fix or follow-up was provided. | |
| qwen/qwen3.6-35b-a3b | — | — | Abandoned. The report highlighted that Snapcraft fails to mangle desktop file Exec lines per documentation, leaving them unmodified instead of using the required $snap.$app format. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Snapcraft failed to mangle desktop file Exec lines as documented. The report was closed without comments or resolution, indicating it was abandoned. |
Update history
| Date | Change |
|---|---|
| created |
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1655832 App name in snapcraft.yaml must match case of .desktop file | snapcraft (launchpad) | open | Case-mismatched app and desktop names can strip Exec from the generated desktop file; maintainers acknowledged missing capitalized-name support, but no fix or decision is recorded. | |
| #1658123 Exec key from desktop files gets trimmed when installed by snapd | snapcraft (launchpad) | closed | Snapcraft 2.25 emitted invalid Exec keys (e.g. `tus.tus`) for apps named like their parent package, so snapd stripped the key. Fixed by merged PR #1061 in commit b393badb4, which generates a proper Exec key for those apps. |