Bug 389007

Summary: Discover doesn't de-duplicate HexChat
Product: [Applications] Discover Reporter: Nate Graham <nate>
Component: discoverAssignee: Aleix Pol <aleixpol>
Status: RESOLVED NOT A BUG    
Severity: normal    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Multiple HexChats
Screenshot with the appstream id by the side

Description Nate Graham 2018-01-15 14:37:36 UTC
Created attachment 109880 [details]
Multiple HexChats

Discover doesn't de-duplicate Hexchat when it's available from Flathub as well as my Ubuntu packaging, even though their AppStream IDs match (aside from upstream having ".desktop" on the end)

Upstream
io.github.Hexchat.desktop: https://github.com/hexchat/hexchat/blob/master/data/misc/io.github.Hexchat.appdata.xml.in#L3

Flathub
io.github.Hexchat: https://github.com/flathub/io.github.Hexchat/blob/master/io.github.Hexchat.json#L2

Yet they don't display as one. See attached screenshot (top entry is from Ubuntu packaging, middle is from Flathub, bottom is Snap, so ignore that for now since Snap doesn't use AppStream IDs yet).
Comment 1 Aleix Pol 2018-01-16 16:42:52 UTC
Created attachment 109914 [details]
Screenshot with the appstream id by the side

Are you sure the appstream information has reached your system?
Comment 2 Aleix Pol 2018-01-16 16:43:17 UTC
$ appstreamcli search hexchat
Identifier: hexchat.desktop [desktop-application]
Name: HexChat
Summary: IRC Client
Package: hexchat
Homepage: http://hexchat.github.io
Icon: hexchat_hexchat.png
Comment 3 Nate Graham 2018-01-17 00:04:51 UTC
Ah, you're right, my bad! Guess we have to wait for the next release of the distro-packaged version.