Commit d75bff14 authored by Alexander Lohnau's avatar Alexander Lohnau 💬
Browse files

Fix desktop actions for recently used applications

parent ba44b69a
......@@ -413,6 +413,14 @@ bool RecentUsageModel::trigger(int row, const QString &actionId, const QVariant
}
return false;
} else if (actionId == QLatin1String("_kicker_jumpListAction")) {
const QString storageId = sourceModel()->data(sourceModel()->index(row, 0), ResultModel::ResourceRole)
.toString().section(QLatin1Char(':'), 1);
KService::Ptr service = KService::serviceByStorageId(storageId);
service->setExec(argument.toString());
KIO::ApplicationLauncherJob *job = new KIO::ApplicationLauncherJob(service);
job->start();
return true;
} else if (withinBounds) {
const QString &resource = resourceAt(row);
......
Markdown is supported
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