snap apps require hardcode --desktop-file-hint to launch

Bug #1629863 reported by Renato Araujo Oliveira Filho
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Canonical System Image
Confirmed
Undecided
Unassigned
qtmir (Ubuntu)
Confirmed
High
Nick Dedekind

Bug Description

Apps installed by snap does not launch from dash icon unless you hardcode the wrapper file adding "--desktop_file_hint=unity8" on the argument list.

Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in ubuntu-app-launch (Ubuntu):
status: New → Confirmed
Changed in unity8 (Ubuntu):
status: New → Confirmed
Bill Filler (bfiller)
Changed in unity8 (Ubuntu):
importance: Undecided → High
assignee: nobody → kevin gunn (kgunn72)
Changed in ubuntu-app-launch (Ubuntu):
importance: Undecided → High
assignee: nobody → Ted Gould (ted)
Revision history for this message
Bill Filler (bfiller) wrote :

when launching a snap from the dash it's also displaying a blank "unity8" window in addition to the functional app window. Assuming that is because of this workaround using --desktop_file_hint=unity8

you can test with ubuntu-calendar-app or address-book-app from store:
sudo snap install --edge --force-dangerous --devmode ubuntu-calendar-app

kevin gunn (kgunn72)
Changed in unity8 (Ubuntu):
assignee: kevin gunn (kgunn72) → Michael Terry (mterry)
Revision history for this message
Michael Terry (mterry) wrote :

I'm guessing this is a UAL-side issue, perhaps fixed by https://code.launchpad.net/~ted/ubuntu-app-launch/install-root/+merge/305762 ?

Revision history for this message
Ted Gould (ted) wrote :

Ubuntu Calendar App doesn't have a desktop file that matches the app name in the YAML file. The desktop file is:

com.ubuntu.calendar_calendar.desktop

And the YAML has a app name of:

ubuntu-calendar-app

This is an invalid snap.

Revision history for this message
Ted Gould (ted) wrote :

Revision 3 of the snap, version 0.1.

Revision history for this message
Renato Araujo Oliveira Filho (renatofilho) wrote :

ubuntu-calendar-app is already on Rev. 6. And it has the desktop file as "ubuntu-calendar-app.desktop" inside of setup/gui/ directory.

tags: added: unity8-desktop
Changed in canonical-devices-system-image:
status: New → Confirmed
Revision history for this message
Ted Gould (ted) wrote :

So we think this is qtmir resolving the apparmor label incorrectly. Apparmor labels are now "snap.$(pkg).$(app)" instead of "$(pkg)_$(app)" so it isn't getting the AppID of the application correctly.

Changed in qtmir:
status: New → Confirmed
Changed in ubuntu-app-launch (Ubuntu):
status: Confirmed → Invalid
Changed in unity8 (Ubuntu):
status: Confirmed → Invalid
kevin gunn (kgunn72)
no longer affects: unity8 (Ubuntu)
no longer affects: qtmir
Changed in qtmir (Ubuntu):
status: New → Confirmed
assignee: nobody → Nick Dedekind (nick-dedekind)
importance: Undecided → High
no longer affects: ubuntu-app-launch (Ubuntu)
Revision history for this message
Nick Dedekind (nick-dedekind) wrote :

Qtmir doesn't deal with apparmor. We resolve short app ids from long ones in the format "$(pkg)_$(app)" which is documented by http://bazaar.launchpad.net/~indicator-applet-developers/ubuntu-app-launch/trunk.16.10/view/head:/libubuntu-app-launch/appid.h#L118

kevin gunn (kgunn72)
tags: removed: unity8-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.