[gnome-software/mwleeds/hardcoded-pwa-list] fix it real good



commit de7b800f8ba94eb26b821953ccec5c6a089fe73e
Author: Phaedrus Leeds <mwleeds protonmail com>
Date:   Wed Mar 23 19:36:39 2022 -0700

    fix it real good

 plugins/epiphany/gs-self-test.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/plugins/epiphany/gs-self-test.c b/plugins/epiphany/gs-self-test.c
index cbf28243a..f136a78d0 100644
--- a/plugins/epiphany/gs-self-test.c
+++ b/plugins/epiphany/gs-self-test.c
@@ -164,6 +164,7 @@ gs_plugins_epiphany_installed_func (GsPluginLoader *plugin_loader)
        GsApp *app;
        const char *app_id = "org.gnome.Epiphany.WebApp_e9d0e1e4b0a10856aa3b38d9eb4375de4070d043";
        const char *metainfo_app_id = 
"org.gnome.Software.WebApp_e636aa5f2069f6e9c02deccc7b65f43da7985e32.desktop";
+       const char *launchable_app_id;
        g_autofree char *app_id_desktop = NULL;
        g_autofree char *desktop_path = NULL;
 
@@ -181,8 +182,8 @@ gs_plugins_epiphany_installed_func (GsPluginLoader *plugin_loader)
        g_assert_cmpint (gs_app_list_length (list), ==, 1);
        app = gs_app_list_index (list, 0);
        g_assert_cmpstr (gs_app_get_id (app), ==, metainfo_app_id);
-       installed_app_id = gs_app_get_launchable (app, AS_LAUNCHABLE_KIND_DESKTOP_ID);
-       g_assert_cmpstr (installed_app_id, ==, app_id_desktop);
+       launchable_app_id = gs_app_get_launchable (app, AS_LAUNCHABLE_KIND_DESKTOP_ID);
+       g_assert_cmpstr (launchable_app_id, ==, app_id_desktop);
        g_assert_cmpint (gs_app_get_kind (app), ==, AS_COMPONENT_KIND_WEB_APP);
        g_assert_cmpint (gs_app_get_scope (app), ==, AS_COMPONENT_SCOPE_USER);
        g_assert_cmpint (gs_app_get_state (app), ==, GS_APP_STATE_INSTALLED);


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