desktop file Exec mangling broken

Bug #1814907 reported by Harald Sitter
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snapcraft
Invalid
Medium
Claudio Matsuoka

Bug Description

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
```

tags: added: 19.04-blue
Changed in snapcraft:
status: New → Triaged
importance: Undecided → Medium
tags: added: 19.04
Changed in snapcraft:
milestone: none → 3.3
Changed in snapcraft:
milestone: 3.3 → 3.4
assignee: nobody → Claudio Matsuoka (cmatsuoka)
Changed in snapcraft:
status: Triaged → In Progress
Revision history for this message
Claudio Matsuoka (cmatsuoka) wrote :

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?

Revision history for this message
Harald Sitter (apachelogger) wrote :

Perhaps I am imagining things, but I could have sworn the documentation didn't say anything about the app portion getting omitted when the names are the same when I filed this bug.

Anyway, seeing as the docs line up with how snapcraft behaves this is a non-issue.

Changed in snapcraft:
status: In Progress → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.