[gnome-software] Use g_get_user_data_dir instead of hard-coded ~/.local/share
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] Use g_get_user_data_dir instead of hard-coded ~/.local/share
- Date: Thu, 5 Nov 2015 03:45:13 +0000 (UTC)
commit f15cffb4fe8e69c09b7a493e80dd4ada098e6ad7
Author: Robert Ancell <robert ancell canonical com>
Date: Thu Nov 5 16:38:19 2015 +1300
Use g_get_user_data_dir instead of hard-coded ~/.local/share
src/plugins/gs-plugin-fedora-tagger-ratings.c | 4 +---
src/plugins/gs-plugin-local-ratings.c | 4 +---
2 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/src/plugins/gs-plugin-fedora-tagger-ratings.c b/src/plugins/gs-plugin-fedora-tagger-ratings.c
index 8906b4d..2d10ed6 100644
--- a/src/plugins/gs-plugin-fedora-tagger-ratings.c
+++ b/src/plugins/gs-plugin-fedora-tagger-ratings.c
@@ -57,9 +57,7 @@ void
gs_plugin_initialize (GsPlugin *plugin)
{
plugin->priv = GS_PLUGIN_GET_PRIVATE (GsPluginPrivate);
- plugin->priv->db_path = g_build_filename (g_get_home_dir (),
- ".local",
- "share",
+ plugin->priv->db_path = g_build_filename (g_get_user_data_dir (),
"gnome-software",
"fedora-tagger.db",
NULL);
diff --git a/src/plugins/gs-plugin-local-ratings.c b/src/plugins/gs-plugin-local-ratings.c
index 24328bc..ef8c199 100644
--- a/src/plugins/gs-plugin-local-ratings.c
+++ b/src/plugins/gs-plugin-local-ratings.c
@@ -50,9 +50,7 @@ gs_plugin_initialize (GsPlugin *plugin)
{
/* create private area */
plugin->priv = GS_PLUGIN_GET_PRIVATE (GsPluginPrivate);
- plugin->priv->db_path = g_build_filename (g_get_home_dir (),
- ".local",
- "share",
+ plugin->priv->db_path = g_build_filename (g_get_user_data_dir (),
"gnome-software",
"hardcoded-ratings.db",
NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]