Bug 436014 - The "source" menu is not displayed in many popular applications
Summary: The "source" menu is not displayed in many popular applications
Status: RESOLVED DOWNSTREAM
Alias: None
Product: Discover
Classification: Applications
Component: discover (other bugs)
Version First Reported In: 5.21.4
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Dan Leinir Turthra Jensen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-21 17:55 UTC by Tàfol
Modified: 2021-04-23 01:06 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
App screenshots (350.65 KB, image/jpeg)
2021-04-21 17:55 UTC, Tàfol
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tàfol 2021-04-21 17:55:19 UTC
Created attachment 137767 [details]
App screenshots

SUMMARY
Some applications, like Krita, appear only once in the applications list and the application page has a menu to choose the source.  But other applications; such as LibreOffice, Blender, Inkscape or Gimp; appear repeatedly in the applications list and do not show the "source" menu on the application page.

STEPS TO REPRODUCE
1. Open Discover
2. Search one of the applications with the issue (LibreOffice, Blender, Inkscape or Gimp) and observe search results
3. Go to application page

OBSERVED RESULT
Mentioned applications appear duplicated or tripled in de applications list and the source menu is not in the toolbar at its page

EXPECTED RESULT
Each application appears only once in the list and the "source" menu exists in the toolbar

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.21.4
KDE Frameworks Version: 5.81.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
There is a similar reported bug https://bugs.kde.org/show.bug.cgi?id=435607, but I do not think it is exactly the same, although it may be related.
Comment 1 Nate Graham 2021-04-22 19:54:17 UTC
That means that Discover was not able to de-duplicate those apps and collapse them into one entry in the UI, because the apps have different AppStream IDs.

This is an issue either with the apps themselves, or with their packaging in the repos you're using. I can reproduce the issue with blender, but yeah, it's due to the mismatch I mentioned, not a problem in Discover.
Comment 2 Aleix Pol 2021-04-23 01:06:04 UTC
It would be useful to open an issue on a per-application basis like we did for #435823.

The reasons why it's not de-duplicated can be varied. In the case of blender, I just checked and it's not providing a common id.

I asked the contacts I have in snap if they can give me a hand to address in there.