Bug 387790

Summary: When PackageKit and Flatpak backends are both installed, apps present in both are shown twice
Product: [Applications] Discover Reporter: Nate Graham <nate>
Component: discoverAssignee: Aleix Pol <aleixpol>
Status: RESOLVED DOWNSTREAM    
Severity: normal CC: bugseforuns
Priority: NOR    
Version: 5.11.4   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Duplicate Blender apps (PackageKit one installed bedore Flatpak backend added)
Duplicate HexChat (neither one is installed)

Description Nate Graham 2017-12-11 05:04:57 UTC
Created attachment 109309 [details]
Duplicate Blender apps (PackageKit one installed bedore Flatpak backend added)

Kubuntu 17.10 + KDE Backports PPA
Discover 5.11.4

When I install the Flatpak backend and add Flathub as a repo, Discover shows two entries for each app that's provided by both backends. This is true for apps that were already installed from one backend, as well as apps that are not installed from any backend. See attached screenshots.
Comment 1 Nate Graham 2017-12-11 05:05:38 UTC
Created attachment 109310 [details]
Duplicate HexChat (neither one is installed)
Comment 2 Aleix Pol 2017-12-11 14:00:39 UTC
This bug report is just showing a packaging bug. Blender from the distribution is suggesting "blender.desktop" as appstream id and from flatpak it's "org.blender.Blender.desktop". There's no way Discover can detect they are the same.
Comment 3 Nate Graham 2017-12-11 14:02:02 UTC
Oh yikes, then this is going to be a nightmare to fix.
Comment 4 Aleix Pol 2017-12-11 17:52:56 UTC
So the issue is that flatpak enforces the reverse dns structure, so I guess flatpak packaging is doing the renaming at packaging time. I gues the best solution is to get upstream blender.desktop file to become org.blender....desktop.
Comment 5 Nate Graham 2017-12-11 21:36:39 UTC
There's a LOT of upstream work to do here, then...