Desktop Exec silently wiped (corebird)

I just installed corebird on a new install of 17.04 and when launching I get a message saying that the desktop file has no Exec entry as seen:

$ cat /var/lib/snapd/desktop/applications/corebird_corebird.desktop && echo

Produces:

[Desktop Entry]
Name=Corebird
GenericName=Corebird Twitter client
Comment=Twitter client using GTK3
Icon=/snap/corebird/26/usr/share/icons/hicolor/256x256/apps/corebird.png
Terminal=false
Type=Application
StartupNotify=false
Categories=Application;Social

While this:

$ cat /snap/corebird/current/meta/gui/corebird.desktop [Desktop Entry]

Shows:

Encoding=UTF-8
Name=Corebird
GenericName=Corebird Twitter client
Comment=Twitter client using GTK3
Exec=corebird-diddledan.corebird
Icon=${SNAP}/usr/share/icons/hicolor/256x256/apps/corebird.png
Terminal=false
Type=Acpplication
StartupNotify=false
Categories=Application;Social
Mimetype=application/corebird;

While I agree that diddledan has work to do to make Exec have an appropriate entry (should be corebird) I don’t think the install should succeed (at least not silently). Can this be fixed in snapd?

I cannot get the to snap change if required as it no longer shows in the history (I only have change 29 and 30 and it is neither of those).

sergiusens@mirkwood:~$ snap changes 
ID   Status  Spawn                 Ready                 Summary
29   Done    2017-07-11T18:10:22Z  2017-07-11T18:11:33Z  Install "lxd" snap
30   Done    2017-07-12T01:07:26Z  2017-07-12T01:42:39Z  Install "libreoffice" snap

sergiusens@mirkwood:~$ snap change 28
error: cannot find change with id "28"

I also think that the Exec entry required should be that defined in the apps entry and snapd should do the appropriate mangling if it will use an alias or not.

1 Like