diff --git a/libsearch/appsearch/app-search-plugin.cpp b/libsearch/appsearch/app-search-plugin.cpp index 26c4417..3174d3d 100644 --- a/libsearch/appsearch/app-search-plugin.cpp +++ b/libsearch/appsearch/app-search-plugin.cpp @@ -49,7 +49,8 @@ AppSearchPlugin::AppSearchPlugin(QObject *parent) : QThread(parent), m_appSearch SearchProperty::SearchResultProperty::ApplicationLocalName, SearchProperty::SearchResultProperty::ApplicationIconName, SearchProperty::SearchResultProperty::ApplicationDescription, - SearchProperty::SearchResultProperty::IsOnlineApplication}); + SearchProperty::SearchResultProperty::IsOnlineApplication, + SearchProperty::SearchResultProperty::ApplicationPkgName}); } AppSearchPlugin::~AppSearchPlugin() @@ -200,6 +201,9 @@ void AppSearchPlugin::run() description.value = data.value(SearchProperty::SearchResultProperty::ApplicationDescription).toString(); ri.description.append(description); ri.type = data.value(SearchProperty::SearchResultProperty::IsOnlineApplication).toInt(); + if (ri.type == 1) { + ri.actionKey = data.value(SearchProperty::SearchResultProperty::ApplicationPkgName).toString(); + } m_searchResult->enqueue(ri); }