[gtk/state-saving] fixup: use cache dir



commit e9ce1959b47365059396da21f89cc63a22e767ac
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Jun 3 10:24:47 2021 -0400

    fixup: use cache dir

 gtk/gtkapplication.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkapplication.c b/gtk/gtkapplication.c
index 648c4fc955..1f5920fd37 100644
--- a/gtk/gtkapplication.c
+++ b/gtk/gtkapplication.c
@@ -1325,8 +1325,8 @@ get_state_file (GtkApplication *application)
   const char *dir;
 
   app_id = g_application_get_application_id (G_APPLICATION (application));
-  dir = g_get_user_data_dir ();
-  return g_strconcat (dir, "/", app_id, ".state", NULL);
+  dir = g_get_user_cache_dir ();
+  return g_strconcat (dir, G_DIR_SEPARATOR_S, app_id, ".state", NULL);
 }
 
 /**


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