Bug 410687 - KDevelop is listed twice in Discover and other software center apps
Summary: KDevelop is listed twice in Discover and other software center apps
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: general (show other bugs)
Version: 5.4.1
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-08-07 08:39 UTC by David Redondo
Modified: 2019-08-22 15:00 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Screenshot of the situation (110.86 KB, image/png)
2019-08-07 08:39 UTC, David Redondo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Redondo 2019-08-07 08:39:38 UTC
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
Comment 1 Nate Graham 2019-08-07 19:50:11 UTC
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.
Comment 2 Friedrich W. H. Kossebau 2019-08-07 19:53:48 UTC
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.
Comment 3 Nate Graham 2019-08-07 19:56:48 UTC
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?
Comment 4 Friedrich W. H. Kossebau 2019-08-07 22:26:39 UTC
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.
Comment 5 Friedrich W. H. Kossebau 2019-08-20 20:13:09 UTC
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
Comment 6 Aleix Pol 2019-08-22 15:00:20 UTC
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