[recipes] Don't hardcode .var/app/org.gnome.Recipes



commit f1587e5551160fbf1db24fd465b81ef454c2791e
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Feb 28 22:30:10 2017 -0500

    Don't hardcode .var/app/org.gnome.Recipes
    
    We have a utility function for this, use it.

 src/gr-recipe-exporter.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gr-recipe-exporter.c b/src/gr-recipe-exporter.c
index 6b96ce1..123e7f2 100644
--- a/src/gr-recipe-exporter.c
+++ b/src/gr-recipe-exporter.c
@@ -456,7 +456,7 @@ do_export (GrRecipeExporter *exporter)
 
         for (i = 0; i < 1000; i++) {
                 g_autofree char *tmp;
-                tmp = g_strdup_printf ("%s/.var/app/org.gnome.Recipes/recipes%d.gnome-recipes-export", 
g_get_home_dir (), i);
+                tmp = g_strdup_printf ("%s/recipes%d.gnome-recipes-export", get_user_data_dir (), i);
                 if (!g_file_test (tmp, G_FILE_TEST_EXISTS)) {
                         path = g_strdup (tmp);
                         break;


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