Created attachment 121993 [details] Screenshot of the situation SUMMARY KDevelop package is listed twice under updates. STEPS TO REPRODUCE Open uddates page when a new KDevelop version is available OBSERVED RESULT Two entries are displayed: KDevelop and "KDevelop (Pick Session)" EXPECTED RESULT Only one entry
As you can see, technically they're different entries, not duplicates. What's going on here two of the KDevelop packages have AppStream Data (which is used to identify something as an app). Instead, only one should. Moving to KDevelop.
Nate, what do you mean by "two of the KDevelop packages have AppStream Data"? This leaves one puzzled what to do. There is only one kdevelop appdata file: https://cgit.kde.org/kdevelop.git/tree/org.kde.kdevelop.appdata.xml Any other appdata files (actually metainfo,xml files) are part of kdev-python & kdev-php respective.
Ah, I see, it's actually that KDevelop ships two .desktop files: org.kde.kdevelop.desktop and org.kde.kdevelop_ps.desktop. kdevelop_ps.desktop is the one that provides the "KDevelop (Pick Session)" string. At this point I'm unsure if the issue is caused by KDevelop providing these files in an odd way, or if Discover is parsing and displaying the information incorrectly. Aleix, any ideas?
Perhaps related, the kdevelop appdata file so far also missed to feature some <launchable type="desktop-id"/>. This just got committed to 5.4 branch & merged to master. Though still surprising that menu desktop files are considered over the appdata file description, where the latter should point out this is one single app.
https://phabricator.kde.org/D23306 holds a hint by Matthias Klumpp how to prevent the appdata tools to pick up both desktop files: adding an entry X-AppStream-Ignore=True to the desktop file Will look into this later this week, noting here as reminder for me and everyone
Git commit 12bf83b0abd064f22c0a137b0ec7123f155c3097 by Aleix Pol. Committed on 22/08/2019 at 15:00. Pushed by apol into branch '5.4'. Indicate appsteam the ps desktop file isn't a separate application Reviewers: kossebau, ngraham Subscribers: kdevelop-devel Tags: #kdevelop Differential Revision: https://phabricator.kde.org/D23321 M +1 -0 app/org.kde.kdevelop_ps.desktop M +1 -1 org.kde.kdevelop.appdata.xml https://invent.kde.org/kde/kdevelop/commit/12bf83b0abd064f22c0a137b0ec7123f155c3097