[gnome-software/mwleeds/hardcoded-pwa-list: 16/18] fix more stuff
- From: Phaedrus Leeds <mwleeds src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/mwleeds/hardcoded-pwa-list: 16/18] fix more stuff
- Date: Thu, 24 Mar 2022 17:53:13 +0000 (UTC)
commit 8558f00ea909ffb38ca27a2f854190363e17782b
Author: Phaedrus Leeds <mwleeds protonmail com>
Date: Wed Mar 23 19:32:46 2022 -0700
fix more stuff
plugins/epiphany/gs-self-test.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/plugins/epiphany/gs-self-test.c b/plugins/epiphany/gs-self-test.c
index 20055e07c..cb090d13b 100644
--- a/plugins/epiphany/gs-self-test.c
+++ b/plugins/epiphany/gs-self-test.c
@@ -165,6 +165,7 @@ gs_plugins_epiphany_installed_func (GsPluginLoader *plugin_loader)
g_autoptr(GsAppList) list = NULL;
GsApp *app;
const char *app_id = "org.gnome.Epiphany.WebApp_e9d0e1e4b0a10856aa3b38d9eb4375de4070d043";
+ const char *metainfo_app_id =
"org.gnome.Software.WebApp_e636aa5f2069f6e9c02deccc7b65f43da7985e32.desktop";
g_autofree char *app_id_desktop = NULL;
g_autofree char *desktop_path = NULL;
@@ -181,7 +182,9 @@ 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), ==, app_id_desktop);
+ 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);
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]