[gnome-software/mwleeds/hardcoded-pwa-list: 1/2] epiphany: more debug statements




commit f3d484554130b4c99cfee6e5939074b326009fa2
Author: Phaedrus Leeds <mwleeds protonmail com>
Date:   Mon Mar 21 16:13:08 2022 -0700

    epiphany: more debug statements

 plugins/epiphany/gs-plugin-epiphany.c | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
---
diff --git a/plugins/epiphany/gs-plugin-epiphany.c b/plugins/epiphany/gs-plugin-epiphany.c
index 31dab0513..023300738 100644
--- a/plugins/epiphany/gs-plugin-epiphany.c
+++ b/plugins/epiphany/gs-plugin-epiphany.c
@@ -593,7 +593,15 @@ list_installed_apps_thread_cb (GTask        *task,
                 * later use
                 */
                metainfo_app_id = g_hash_table_lookup (self->url_id_map, url);
-               app = gs_epiphany_create_app (self, metainfo_app_id ? metainfo_app_id : desktop_file_id);
+               if (metainfo_app_id) {
+                       g_debug ("Creating GsApp for webapp with URL %s using app ID from metainfo: %s"
+                                " (Epiphany app ID: %s)", url, metainfo_app_id, desktop_file_id);
+                       app = gs_epiphany_create_app (self, metainfo_app_id);
+               } else {
+                       g_debug ("Creating GsApp for webapp with URL %s using app ID from Epiphany: %s",
+                                url, desktop_file_id);
+                       app = gs_epiphany_create_app (self, desktop_file_id);
+               }
                gs_app_set_metadata (app, "epiphany::installed-app-id", desktop_file_id);
 
                gs_app_set_state (app, GS_APP_STATE_INSTALLED);


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