Bug 387790 - When PackageKit and Flatpak backends are both installed, apps present in both are shown twice
Summary: When PackageKit and Flatpak backends are both installed, apps present in both...
Status: RESOLVED DOWNSTREAM
Alias: None
Product: Discover
Classification: Applications
Component: discover (show other bugs)
Version: 5.11.4
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Aleix Pol
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-11 05:04 UTC by Nate Graham
Modified: 2017-12-12 12:48 UTC (History)
1 user (show)

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


Attachments
Duplicate Blender apps (PackageKit one installed bedore Flatpak backend added) (396.66 KB, image/png)
2017-12-11 05:04 UTC, Nate Graham
Details
Duplicate HexChat (neither one is installed) (349.70 KB, image/png)
2017-12-11 05:05 UTC, Nate Graham
Details

Note You need to log in before you can comment on or make changes to this bug.
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...