[epiphany] embed-shell: Use the default profile directory for the GSB database



commit 9db8e6555ce9cbee26e06359f35f0c933e1eb02d
Author: Gabriel Ivascu <gabrielivascu gnome org>
Date:   Sat Jan 27 01:32:00 2018 +0200

    embed-shell: Use the default profile directory for the GSB database
    
    https://bugzilla.gnome.org/show_bug.cgi?id=792929

 embed/ephy-embed-shell.c |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/embed/ephy-embed-shell.c b/embed/ephy-embed-shell.c
index bc9dc27..b4837f8 100644
--- a/embed/ephy-embed-shell.c
+++ b/embed/ephy-embed-shell.c
@@ -606,14 +606,17 @@ ephy_embed_shell_get_global_gsb_service (EphyEmbedShell *shell)
 
   if (priv->global_gsb_service == NULL) {
     char *api_key;
-    char *filename;
+    char *dot_dir;
+    char *db_path;
 
     api_key = g_settings_get_string (EPHY_SETTINGS_WEB, EPHY_PREFS_WEB_GSB_API_KEY);
-    filename = g_build_filename (ephy_dot_dir (), EPHY_GSB_FILE, NULL);
-    priv->global_gsb_service = ephy_gsb_service_new (api_key, filename);
+    dot_dir = ephy_default_dot_dir ();
+    db_path = g_build_filename (dot_dir, EPHY_GSB_FILE, NULL);
+    priv->global_gsb_service = ephy_gsb_service_new (api_key, db_path);
 
     g_free (api_key);
-    g_free (filename);
+    g_free (dot_dir);
+    g_free (db_path);
   }
 
   return priv->global_gsb_service;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]