[gnome-software] Load the new-style epiphany web-app location
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] Load the new-style epiphany web-app location
- Date: Mon, 27 Jun 2016 14:40:26 +0000 (UTC)
commit 9781411eeb749c91b8b513d7088cfdcfb15e2481
Author: Richard Hughes <richard hughsie com>
Date: Mon Jun 27 14:49:01 2016 +0100
Load the new-style epiphany web-app location
Sometime in the last few months epiphany appears to have started including the
name hash in the symlink source name.
Support both old and new ways of doing this so manually created web-apps work.
src/plugins/gs-plugin-epiphany.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/gs-plugin-epiphany.c b/src/plugins/gs-plugin-epiphany.c
index 6497725..8238490 100644
--- a/src/plugins/gs-plugin-epiphany.c
+++ b/src/plugins/gs-plugin-epiphany.c
@@ -278,6 +278,13 @@ gs_plugin_refine_app (GsPlugin *plugin,
hash,
id_nonfull,
hash);
+ /* try the new-style location */
+ if (!g_file_test (fn, G_FILE_TEST_EXISTS)) {
+ g_free (fn);
+ fn = g_strdup_printf ("%s/epiphany/app-%s/%s.desktop",
+ g_get_user_config_dir (),
+ id_nonfull, id_nonfull);
+ }
if (g_file_test (fn, G_FILE_TEST_EXISTS)) {
gs_app_set_state (app, AS_APP_STATE_INSTALLED);
gs_app_add_source_id (app, fn);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]