diff --git a/libsearch/appsearch/app-search-plugin.cpp b/libsearch/appsearch/app-search-plugin.cpp index 3adf827..88920ee 100644 --- a/libsearch/appsearch/app-search-plugin.cpp +++ b/libsearch/appsearch/app-search-plugin.cpp @@ -191,7 +191,7 @@ void AppSearchPlugin::run() SearchPluginIface::ResultInfo ri; ri.name = data.value(SearchProperty::SearchResultProperty::ApplicationLocalName).toString(); - ri.icon = IconLoader::loadIconQt(data.value(SearchProperty::SearchResultProperty::ApplicationIconName).toString(), QIcon(":/res/icons/unknown.svg")); + ri.icon = IconLoader::loadIconXdg(data.value(SearchProperty::SearchResultProperty::ApplicationIconName).toString(), QIcon(":/res/icons/unknown.svg")); SearchPluginIface::DescriptionInfo description; description.key = QString(tr("Application Description:")); description.value = data.value(SearchProperty::SearchResultProperty::ApplicationDescription).toString(); diff --git a/libsearch/icon-loader.cpp b/libsearch/icon-loader.cpp index 2e0e8a4..7240224 100644 --- a/libsearch/icon-loader.cpp +++ b/libsearch/icon-loader.cpp @@ -18,6 +18,6 @@ QIcon IconLoader::loadIconQt(const QString &name, const QIcon &fallback) QIcon IconLoader::loadIconXdg(const QString &name, const QIcon &fallback) { QMutexLocker locker(&xdgIconMutex); - return XdgIcon::fromTheme("name",fallback); + return XdgIcon::fromTheme(name,fallback); } } // UkuiSearch \ No newline at end of file