Source for deb apps in dropdown menu is empty

Bug #1873040 reported by AsciiWolf
118
This bug affects 22 people
Affects Status Importance Assigned to Milestone
snap-store-desktop
Fix Released
High
Robert Ancell

Bug Description

The source for deb apps displayed in the dropdown menu in window header on app details page is empty. See the attached screenshot. This dropdown menu is displayed only when there are multiple sources (debs or debs and snaps) available.

Also, with snap app that has also a deb source available, clicking the empty source correctly switches the opened details page from a default snap to the deb one, however the whole dropdown menu disappears from the window header.

Steps to Reproduce:
1. Open Snap Store and search for "SuperTuxKart"
2. Click the result to open its details page.
3. Open the dropdown menu in the window header.

The same issue also happens for apps that are available only as debs, but have multiple deb sources, see comment #2 for a deb-only example.

Also note that the URL and Format entries are missing as well, however when switching to the empty (deb) source and scrolling the page, its source URL is correctly displayed at the details section of the page.

Tags: focal
Revision history for this message
AsciiWolf (asciiwolf) wrote :
Changed in snap-store:
status: New → Confirmed
importance: Undecided → High
Revision history for this message
AsciiWolf (asciiwolf) wrote :

Hmm, it seems that this issue also happens for apps that are available only as debs, but have multiple sources (multiple desktop files being a part of the application). For example the fldigi amateur radio app.

Changed in snap-store:
assignee: nobody → Ken VanDine (ken-vandine)
assignee: Ken VanDine (ken-vandine) → Robert Ancell (robert-ancell)
Changed in snap-store:
importance: High → Medium
Changed in snap-store:
importance: Medium → High
summary: - Source for deb apps is empty when they are also available as debs
+ Source for deb apps is empty when they are also available as snap
Revision history for this message
AsciiWolf (asciiwolf) wrote : Re: Source for deb apps is empty when they are also available as snap
Download full text (3.7 KiB)

It seems that these AVCs are printed in journal when clicking the dropdown Sources menu on a details page of deb app that has multiple sources available (multiple debs or debs + snaps):
virt-ubuntu audit[6180]: AVC apparmor="DENIED" operation="open" profile="snap.snap-store.snap-store" name="/var/lib/snapd/hostfs/usr/share/mime/mime.cache" pid=6180 comm="snap-store" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
virt-ubuntu audit[6180]: AVC apparmor="DENIED" operation="open" profile="snap.snap-store.snap-store" name="/var/lib/snapd/hostfs/usr/share/mime/globs2" pid=6180 comm="snap-store" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
virt-ubuntu audit[6180]: AVC apparmor="DENIED" operation="open" profile="snap.snap-store.snap-store" name="/var/lib/snapd/hostfs/usr/share/mime/magic" pid=6180 comm="snap-store" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
virt-ubuntu audit[6180]: AVC apparmor="DENIED" operation="open" profile="snap.snap-store.snap-store" name="/var/lib/snapd/hostfs/usr/share/mime/aliases" pid=6180 comm="snap-store" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
virt-ubuntu audit[6180]: AVC apparmor="DENIED" operation="open" profile="snap.snap-store.snap-store" name="/var/lib/snapd/hostfs/usr/share/mime/subclasses" pid=6180 comm="snap-store" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
virt-ubuntu audit[6180]: AVC apparmor="DENIED" operation="open" profile="snap.snap-store.snap-store" name="/var/lib/snapd/hostfs/usr/share/mime/icons" pid=6180 comm="snap-store" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
virt-ubuntu audit[6180]: AVC apparmor="DENIED" operation="open" profile="snap.snap-store.snap-store" name="/var/lib/snapd/hostfs/usr/share/mime/generic-icons" pid=6180 comm="snap-store" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
virt-ubuntu kernel: audit: type=1400 audit(1589481306.426:32839): apparmor="DENIED" operation="open" profile="snap.snap-store.snap-store" name="/var/lib/snapd/hostfs/usr/share/mime/mime.cache" pid=6180 comm="snap-store" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
virt-ubuntu kernel: audit: type=1400 audit(1589481306.426:32840): apparmor="DENIED" operation="open" profile="snap.snap-store.snap-store" name="/var/lib/snapd/hostfs/usr/share/mime/globs2" pid=6180 comm="snap-store" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
virt-ubuntu kernel: audit: type=1400 audit(1589481306.426:32841): apparmor="DENIED" operation="open" profile="snap.snap-store.snap-store" name="/var/lib/snapd/hostfs/usr/share/mime/magic" pid=6180 comm="snap-store" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
virt-ubuntu kernel: audit: type=1400 audit(1589481306.426:32842): apparmor="DENIED" operation="open" profile="snap.snap-store.snap-store" name="/var/lib/snapd/hostfs/usr/share/mime/aliases" pid=6180 comm="snap-store" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
virt-ubuntu kernel: audit: type=1400 audit(1589481306.426:32843): apparmor="DENIED" operation="open" profile="snap.snap-store.snap-store" name="/var/lib/snapd/hostfs/usr/share/mime/subclasses" pid=6180 comm="snap-store" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
virt-ubuntu kernel: aud...

Read more...

Revision history for this message
AsciiWolf (asciiwolf) wrote :

I hoped that the fix for missing icons (#1864307) could maybe also fix this issue. Unfortunately, the sources are still empty when using latest snap-store and ubuntu-desktop from focal-proposed.

Revision history for this message
AsciiWolf (asciiwolf) wrote :

The missing "Ubuntu" source name could indicate a problem with gsettings-desktop-schemas, at least in my opinion (but I am not sure), but can also be intended (I don't know Snap Store code changes that much).

By the way, note that the URL and Format entries are also missing, however when switching to the empty (deb) source and scrolling the page, its source URL is correctly displayed at the details section of the page.

AsciiWolf (asciiwolf)
summary: - Source for deb apps is empty when they are also available as snap
+ Source for deb apps in dropdown menu is empty
description: updated
AsciiWolf (asciiwolf)
description: updated
Revision history for this message
AsciiWolf (asciiwolf) wrote :

Maybe it could be possible to somehow hardcode the origin name (for example see how this is handled for Flathub in upstream lib/gs-app.c). The repo name is correctly displayed on app details page, as I noted above, so it gets detected, but is not displayed in the dropdown menu for some reason.

Revision history for this message
corrado venturini (corradoventu) wrote :

still same problem (tested also with GIMP)
corrado@corrado-n9-focal:~$ snap version
snap 2.45.1
snapd 2.45.1
series 16
ubuntu 20.04
kernel 5.4.0-37-generic
corrado@corrado-n9-focal:~$ snap list snap-store
Name Version Rev Tracking Publisher Notes
snap-store 3.36.0-80-g208fd61 467 latest/stable/… canonical✓ -
corrado@corrado-n9-focal:~$

Revision history for this message
AsciiWolf (asciiwolf) wrote :

Please let me know if there is anything else I could do (test, debug, provide additional info etc.) to help getting this annoying bug fixed. Some regular users that I recommended Ubuntu 20.04 to were already asking me how to install non-Snap apps because they did not realize that the empty space in Channel menu is actually another source that is clickable.

Revision history for this message
AsciiWolf (asciiwolf) wrote :

I have spend some time trying to debug this issue, but was unfortunately not able to find anything related to this issue in snap-store verbose logs or system journal.

Revision history for this message
Mantas Kriaučiūnas (mantas) wrote :

Maybe quick workaround would be to use original gnome-software from deb package instead of snap store?
snap remove snap-store && sudo apt install gnome-software

AsciiWolf (asciiwolf)
description: updated
description: updated
Revision history for this message
AsciiWolf (asciiwolf) wrote :

Still the same issue with latest stable snap-store 3.36.0-80-g208fd61.

Revision history for this message
corrado venturini (corradoventu) wrote :

Still with snap-store 3.36.0-82-g80486d0 481
has the maintenance of snap-store been abandoned?

Revision history for this message
Carlos Pita (carlosjosepita) wrote :

> Hmm, it seems that this issue also happens for apps that are available only as debs, but have multiple sources (multiple desktop files being a part of the application). For example the fldigi amateur radio app.

Yes, Emacs is an example of this, I've attached an screenshot showing it.

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

That's still an issue with the 3.38 snap-store version in edge, the gnome-software from the archive works fine (though it lists entries as 'Ubuntu' without any visible difference). The selector seems to show on deb with several candidate versions (for example those having a SRU available)

Revision history for this message
Robert Ancell (robert-ancell) wrote :
Changed in snap-store-desktop:
status: Confirmed → Fix Committed
Revision history for this message
Mateusz Stachowski (stachowski-mateusz) wrote :

I confirm that the newest snap-store in 20.04 LTS works as expected and displays entries in the dropdown menu.

I've checked SuperTuxKart, GIMP, fldigi, Emacs and Krita.

snap-store 3.38.0-59-g494f078 (518)

Changed in snap-store-desktop:
status: Fix Committed → Fix Released
Revision history for this message
Jeremie Tamburini (jeremie2) wrote :

Just tried the updated snap-store version 3.38.0-59-g494f078 and most of the apps show both version (snap/deb) in the drop down menu. Thank you very much for the improvement!

But... for some applications like Firefox and Thunderbird still doesn't work.
For instance, searching for Firefox we'll get two different results:
- "Firefox Browser Web" for debs. (Dropdown menu shows only deb packages)
- "Firefox" for snaps. (Dropdown menu shows only snap packages)

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

The firefox case is a another problem and due to bug #1871723

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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