[gnome-software/mwleeds/hardcoded-pwa-list: 8/13] epiphany: Make installed apps launchable
- From: Phaedrus Leeds <mwleeds src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/mwleeds/hardcoded-pwa-list: 8/13] epiphany: Make installed apps launchable
- Date: Fri, 25 Mar 2022 02:52:33 +0000 (UTC)
commit 79a18a1f7aaecb25e0de53534e490278cb94dd1a
Author: Phaedrus Leeds <mwleeds protonmail com>
Date: Wed Mar 23 10:54:11 2022 -0700
epiphany: Make installed apps launchable
plugins/epiphany/gs-plugin-epiphany.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/plugins/epiphany/gs-plugin-epiphany.c b/plugins/epiphany/gs-plugin-epiphany.c
index 57dc9d552..fdf70c282 100644
--- a/plugins/epiphany/gs-plugin-epiphany.c
+++ b/plugins/epiphany/gs-plugin-epiphany.c
@@ -668,6 +668,7 @@ gs_plugin_app_install (GsPlugin *plugin,
const char *url;
const char *name;
const char *token = NULL;
+ g_autofree char *installed_desktop_id = NULL;
g_autoptr(GVariant) token_v = NULL;
g_autoptr(GVariant) icon_v = NULL;
GVariantBuilder opt_builder;
@@ -727,13 +728,14 @@ gs_plugin_app_install (GsPlugin *plugin,
g_variant_get (token_v, "(&s)", &token);
if (!gs_ephy_web_app_provider_call_install_sync (self->epiphany_proxy,
url, name, token,
- NULL,
+ &installed_desktop_id,
cancellable,
error)) {
gs_epiphany_error_convert (error);
gs_app_set_state_recover (app);
return FALSE;
}
+ gs_app_set_launchable (app, AS_LAUNCHABLE_KIND_DESKTOP_ID, installed_desktop_id);
gs_app_set_state (app, GS_APP_STATE_INSTALLED);
return TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]