[gnome-software] trivial: Don't include the prefix when saving webapps
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Don't include the prefix when saving webapps
- Date: Mon, 27 Jun 2016 14:40:16 +0000 (UTC)
commit 972d27fa5be70b70a324e171512c65090067e755
Author: Richard Hughes <richard hughsie com>
Date: Mon Jun 27 13:51:48 2016 +0100
trivial: Don't include the prefix when saving webapps
src/plugins/gs-plugin-epiphany.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/plugins/gs-plugin-epiphany.c b/src/plugins/gs-plugin-epiphany.c
index 85028c0..6497725 100644
--- a/src/plugins/gs-plugin-epiphany.c
+++ b/src/plugins/gs-plugin-epiphany.c
@@ -63,7 +63,7 @@ _gs_app_get_id_nonfull (GsApp *app)
gchar *id;
gchar *tmp;
- id = g_strdup (gs_app_get_id (app));
+ id = g_strdup (gs_app_get_id_no_prefix (app));
tmp = g_strrstr (id, ".desktop");
if (tmp != NULL)
*tmp = '\0';
@@ -191,7 +191,7 @@ gs_plugin_app_install (GsPlugin *plugin, GsApp *app,
/* symlink it to somewhere the shell will notice */
app_desktop = g_build_filename (g_get_user_data_dir (),
"applications",
- gs_app_get_id (app),
+ gs_app_get_id_no_prefix (app),
NULL);
symlink_desktop = g_file_new_for_path (app_desktop);
ret = g_file_make_symbolic_link (symlink_desktop,
@@ -233,7 +233,7 @@ gs_plugin_app_remove (GsPlugin *plugin, GsApp *app,
basename = g_file_get_basename (file_epi);
app_desktop = g_build_filename (g_get_user_data_dir (),
"applications",
- gs_app_get_id (app),
+ gs_app_get_id_no_prefix (app),
NULL);
file_app = g_file_new_for_path (app_desktop);
if (!g_file_delete (file_app, NULL, error))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]