Commit 8cd5190f authored by Nate Graham's avatar Nate Graham
Browse files

applets/kicker: use better API to determine apps' AppStream IDs

The current code gathers AppStream IDs by looking at the app's desktop
name and then adding ".desktop" onto the end of this, reflecting a
now-deprecated convention that every AppStream ID ought to end in
".desktop". This hasn't been true for a while and isn't correct today;
let's use a more modern API that returns more correct results.

BUG: 458812
FIXED-IN: 5.24.7
parent 6ce2204b
Pipeline #228680 passed with stage
in 11 minutes and 7 seconds
......@@ -430,7 +430,8 @@ QVariantList appstreamActions(const KService::Ptr &service)
const auto components = appstreamPool->componentsById(service->desktopEntryName() + QLatin1String(".desktop"));
const auto components =
appstreamPool->componentsByLaunchable(AppStream::Launchable::KindDesktopId, service->desktopEntryName() + QLatin1String(".desktop"));
for (const auto &component : components) {
const QString componentId =;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment