Applications from installed snaps don't appear in activities overview

Bug #1718026 reported by Olivier Tilloy
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Snappy
Fix Released
Undecided
Unassigned
snapd (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Under Unity, by specifying desktop files for apps in snapcraft.yaml, the apps would show up in the dash when installed, and could be launched from there. This doesn't appear to work in gnome-shell. Try e.g. the libreoffice snap.

Revision history for this message
Olivier Tilloy (osomon) wrote :

I guess unity was made to look for desktop files in /var/lib/snapd/desktop/applications/ (which is where snapd installs them), and gnome-shell would need to be patched to do the same.

Revision history for this message
Olivier Tilloy (osomon) wrote :

And hopefully that would make the ubuntu dash-to-dock extension display the right icon for the running app.

Revision history for this message
Olivier Tilloy (osomon) wrote :

It looks like appending /var/lib/snapd/desktop to XDG_DATA_DIRS would make g_app_info_get_all() consider desktop files under /var/lib/snapd/desktop/applications.

Revision history for this message
Olivier Tilloy (osomon) wrote :

Ah, in fact this works in an X session, but not under Wayland. This is because the file that adds that path to XDG_DATA_DIRS is /etc/X11/Xsession.d/65snappy.

Revision history for this message
Olivier Tilloy (osomon) wrote :

https://lwn.net/Articles/709769/ seems to indicate there's no Wayland equivalent to /etc/X11/Xsession.d/

Revision history for this message
Olivier Tilloy (osomon) wrote :

This is clearly not a gnome-shell bug, tentatively re-targetting to snapd, although it might have to be addressed somewhere else.

affects: gnome-shell (Ubuntu) → snapd (Ubuntu)
Revision history for this message
Zygmunt Krynicki (zyga) wrote :

This is already fixed in snapd master and should be out with the 2.28 release.

Changed in snappy:
status: New → Fix Committed
Revision history for this message
Olivier Tilloy (osomon) wrote :
Michael Vogt (mvo)
Changed in snapd (Ubuntu):
status: New → Fix Released
Changed in snappy:
status: Fix Committed → Fix Released
Revision history for this message
obrow (obrow) wrote :

I don't know if it is supposed to be fixed in snapd version 2.29.4.2+17.10 but I have no access on snap applications through gnome-shell.
The only way to start an application is via the terminal doing a snap run command.

Notice that I upgraded from 17.04 and that it doesn't work with the x session neither.

It works ok when I run the unity 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.