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




commit 9df3ba2185ecb02b670e7f84df3d2690f5371cd3
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 cb090d13b..7160ed806 100644
--- a/plugins/epiphany/gs-self-test.c
+++ b/plugins/epiphany/gs-self-test.c
@@ -166,6 +166,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;
 
@@ -183,8 +184,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]