Commit 8ff12e84 authored by Kalev Lember's avatar Kalev Lember

rpm-ostree: Set HIDE_FROM_SEARCH quirk for apps we don't want to show

The plan for Fedora Silverblue is to use rpm-ostree layering for things
that are non-apps (e.g. hardware support, codecs, fonts etc that
supplement the base system), and only offer apps through flatpak.

This commit makes it so that available apps don't show up in search, but
anything already installed still gets correctly shown (so that they are
removable / launchable /updatable etc).
parent 90f65c68
Pipeline #79068 passed with stage
in 20 minutes and 49 seconds
......@@ -1229,6 +1229,19 @@ resolve_available_packages_app (GsPlugin *plugin,
gs_app_set_name (app, GS_APP_QUALITY_LOWEST, dnf_package_get_name (pkg));
gs_app_set_summary (app, GS_APP_QUALITY_LOWEST, dnf_package_get_summary (pkg));
/* set hide-from-search quirk for available apps we don't want to show */
if (!gs_app_is_installed (app)) {
switch (gs_app_get_kind (app)) {
case AS_APP_KIND_DESKTOP:
case AS_APP_KIND_WEB_APP:
case AS_APP_KIND_CONSOLE:
gs_app_add_quirk (app, GS_APP_QUIRK_HIDE_FROM_SEARCH);
break;
default:
break;
}
}
return TRUE /* found */;
}
......
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