[gnome-software/mwleeds/hardcoded-pwa-list] fixup! epiphany: Refine appstream-provided web apps



commit 130dcde4b7fbac06e43d3480e67572c4bfc44c98
Author: Phaedrus Leeds <mwleeds protonmail com>
Date:   Tue Mar 15 17:17:26 2022 -0700

    fixup! epiphany: Refine appstream-provided web apps

 plugins/epiphany/gs-plugin-epiphany.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
---
diff --git a/plugins/epiphany/gs-plugin-epiphany.c b/plugins/epiphany/gs-plugin-epiphany.c
index 852b35450..98251b396 100644
--- a/plugins/epiphany/gs-plugin-epiphany.c
+++ b/plugins/epiphany/gs-plugin-epiphany.c
@@ -690,14 +690,11 @@ refine_thread_cb (GTask        *task,
 
                if (gs_app_get_state (app) == GS_APP_STATE_UNKNOWN) {
                        g_autoptr(GsApp) cached_app = NULL;
-                       g_autofree char *desktop_file_id = NULL;
-
-                       desktop_file_id = g_strconcat (id, ".desktop", NULL);
 
                        /* Set the state to available unless we have a cached
                         * app already, in which case it's probably installed
                         */
-                       cached_app = gs_plugin_cache_lookup (GS_PLUGIN (self), desktop_file_id);
+                       cached_app = gs_plugin_cache_lookup (GS_PLUGIN (self), gs_app_get_id (app));
                        if (cached_app)
                                gs_app_set_state (app, gs_app_get_state (cached_app));
                        else


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]