[gnome-builder] context: move back-forward-list to .cache/gnome-builder/history



commit 3cadda9ead8306b15adc18ad9275b713ee6917e6
Author: Christian Hergert <christian hergert me>
Date:   Thu Feb 18 14:23:35 2016 -0800

    context: move back-forward-list to .cache/gnome-builder/history
    
    This doesn't really belong in the XDG user data dir, its more of a local
    system type thing, and therefore belongs in the cache dir.

 libide/ide-context.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/libide/ide-context.c b/libide/ide-context.c
index 939eedb..35d1399 100644
--- a/libide/ide-context.c
+++ b/libide/ide-context.c
@@ -481,9 +481,11 @@ get_back_forward_list_file (IdeContext *self)
 
   project_name = ide_project_get_name (self->project);
   name = g_strdup_printf ("%s.back-forward-list", project_name);
-  path = g_build_filename (g_get_user_data_dir (),
+  name = g_strdelimit (name, " \t\n", '_');
+  path = g_build_filename (g_get_user_cache_dir (),
                            "gnome-builder",
-                           g_strdelimit (name, " \t\n", '_'),
+                           "history",
+                           name,
                            NULL);
   file = g_file_new_for_path (path);
 


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