fix(app-search-plugin):应用图标使用qt的icon引擎找不到,换成xdg的icon加载引擎

This commit is contained in:
JunjieBai 2023-11-06 16:50:56 +08:00
parent edc634d1d4
commit e28dae5d10
2 changed files with 2 additions and 2 deletions

View File

@ -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();

View File

@ -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