[recipes] Use a suffix for the exported file



commit 8a2e8e6b20c31fd5f4aeefde75c2ec7f0bae362b
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Feb 7 13:12:02 2017 -0500

    Use a suffix for the exported file
    
    Instead of the generic .tar.gz, use .gnome-recipe-export.
    This will let us associate a mimetype with our exports,
    and handle import more nicely.

 src/gr-recipe-exporter.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gr-recipe-exporter.c b/src/gr-recipe-exporter.c
index 946c225..a5e3bed 100644
--- a/src/gr-recipe-exporter.c
+++ b/src/gr-recipe-exporter.c
@@ -518,7 +518,7 @@ export_dialog_response (GtkWidget        *dialog,
 
                 for (i = 0; i < 1000; i++) {
                         g_autofree char *tmp;
-                        tmp = g_strdup_printf ("%s/.var/app/org.gnome.Recipes/recipes%d.tar.gz", 
g_get_home_dir (), i);
+                        tmp = g_strdup_printf 
("%s/.var/app/org.gnome.Recipes/recipes%d.gnome-recipes-export", g_get_home_dir (), i);
                         if (!g_file_test (tmp, G_FILE_TEST_EXISTS)) {
                                 path = g_strdup (tmp);
                                 break;
@@ -529,7 +529,7 @@ export_dialog_response (GtkWidget        *dialog,
                         g_autofree char *dir = NULL;
 
                         dir = g_dir_make_tmp ("recipesXXXXXX", NULL);
-                        path = g_build_filename (dir, "recipes.tar.gz", NULL);
+                        path = g_build_filename (dir, "recipes.gnome-recipes-export", NULL);
                 }
 
                 exporter->output = g_file_new_for_path (path);


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