unity7: LauncherEntry API does not work due to snapd not respecting the upstream .desktop naming

Bug #1652441 reported by Pavel Rojtberg
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Snapcraft
New
Undecided
Unassigned
snapd
Triaged
Medium
Unassigned
unity (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

The progress bar is not displayed. Probably get_for_desktop_id() returns the wrong desktop file. I could trace it back until here:
https://bazaar.launchpad.net/~unity-team/libunity/trunk/view/head:/src/unity-launcher.vala#L193

however I have no idea how the "application://" part is resolved.

For the example code triggering this see here: https://git.launchpad.net/teatime/tree/teatime.py#n207

(snap install teatime)

Note that if the deb version is also installed. i.e. the /usr/share/applications/teatime.desktop file is present. The snap picks that one.

description: updated
Revision history for this message
Sebastien Bacher (seb128) wrote :

the issue there is that the source is using an hardcoded desktop name where snapd generates one with a different name

summary: - unity7: LauncherEntry API does not work
+ unity7: LauncherEntry API does not work due to snapd not respecting the
+ upstream .desktop naming
Revision history for this message
Pavel Rojtberg (rojtberg) wrote :

for anybody wanting to workaround this the generated desktop file is named:
<snap_name>_<app_name>.desktop and placed in /var/lib/snapd/desktop/.
For teatime this requires to change code to search for "teatime_teatime.desktop".

As a solution I think that snapcraft should check that the meta/gui/*.desktop filename is correct instead of snapd generating it. This way me (as a developer) would have a chance to guess what to look for.

Michael Vogt (mvo)
affects: snapd (Ubuntu) → snapd
Changed in snapd:
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in unity (Ubuntu):
status: New → Confirmed
Revision history for this message
Michael Vogt (mvo) wrote :

Adding a snapcraft test for the suggestion about the namingin meta/gui/*.desktop

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.