[gnome-software/gnome-3-18] Use g_get_user_data_dir instead of hard-coded ~/.local/share
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/gnome-3-18] Use g_get_user_data_dir instead of hard-coded ~/.local/share
- Date: Tue, 1 Dec 2015 09:28:13 +0000 (UTC)
commit 15196bf542f98750465776612375e35b0b13ee81
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 144bcca..9a35240 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]