[epiphany] Make temporary download files "hidden"



commit 532062b3cb588999d95bb686bfe73087ddc35be0
Author: William Jon McCann <william jon mccann gmail com>
Date:   Wed Jan 29 09:46:54 2014 -0500

    Make temporary download files "hidden"

 embed/ephy-download.c      |    2 +-
 src/window-commands.c      |    2 +-
 tests/ephy-download-test.c |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/embed/ephy-download.c b/embed/ephy-download.c
index 925bf11..33c33a2 100644
--- a/embed/ephy-download.c
+++ b/embed/ephy-download.c
@@ -288,7 +288,7 @@ set_destination_uri_for_suggested_filename (EphyDownload *download, const char *
   if (suggested_filename != NULL) {
     dest_name = ephy_sanitize_filename (g_strdup (suggested_filename));
   } else {
-    dest_name = ephy_file_tmp_filename ("ephy-download-XXXXXX", NULL);
+    dest_name = ephy_file_tmp_filename (".ephy-download-XXXXXX", NULL);
   }
 
   destination_filename = g_build_filename (dest_dir, dest_name, NULL);
diff --git a/src/window-commands.c b/src/window-commands.c
index 76f6b5e..78e1952 100644
--- a/src/window-commands.c
+++ b/src/window-commands.c
@@ -556,7 +556,7 @@ download_icon_and_set_image (EphyApplicationDialogData *data)
         * instead of using this workaround. */
        g_object_set_data (G_OBJECT (download), "ephy-download-set", GINT_TO_POINTER (TRUE));
 
-       tmp_filename = ephy_file_tmp_filename ("ephy-download-XXXXXX", NULL);
+       tmp_filename = ephy_file_tmp_filename (".ephy-download-XXXXXX", NULL);
        destination = g_build_filename (ephy_file_tmp_dir (), tmp_filename, NULL);
        destination_uri = g_filename_to_uri (destination, NULL, NULL);
        webkit_download_set_destination (download, destination_uri);
diff --git a/tests/ephy-download-test.c b/tests/ephy-download-test.c
index 738a53c..b2fd907 100644
--- a/tests/ephy-download-test.c
+++ b/tests/ephy-download-test.c
@@ -84,7 +84,7 @@ fixture_setup (Fixture *fixture, gconstpointer data)
   char *tmp_filename;
   char *dest_file;
 
-  tmp_filename = ephy_file_tmp_filename ("ephy-download-XXXXXX", NULL);
+  tmp_filename = ephy_file_tmp_filename (".ephy-download-XXXXXX", NULL);
   dest_file = g_build_filename (ephy_file_tmp_dir (), tmp_filename, NULL);
 
   fixture->source = get_uri_for_path ("/default");


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