[gnome-software/gnome-3-20] trivial: Don't include the prefix when saving webapps
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/gnome-3-20] trivial: Don't include the prefix when saving webapps
- Date: Tue, 12 Jul 2016 17:21:24 +0000 (UTC)
commit d39ec23dfe3836c7e515612290316118ad10571f
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 d29600b..8d3e8c2 100644
--- a/src/plugins/gs-plugin-epiphany.c
+++ b/src/plugins/gs-plugin-epiphany.c
@@ -84,7 +84,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';
@@ -204,7 +204,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,
@@ -250,7 +250,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]