[gnome-utils] screenshot: never attempt to save in /tmp



commit 45492e740dcb1651a8694f0b3dbc379d00122943
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Mon Sep 26 15:08:56 2011 -0400

    screenshot: never attempt to save in /tmp

 gnome-screenshot/screenshot-filename-builder.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/gnome-screenshot/screenshot-filename-builder.c b/gnome-screenshot/screenshot-filename-builder.c
index 026be67..5a5d4b8 100644
--- a/gnome-screenshot/screenshot-filename-builder.c
+++ b/gnome-screenshot/screenshot-filename-builder.c
@@ -27,8 +27,7 @@
 typedef enum
 {
   TEST_LAST_DIR = 0,
-  TEST_DESKTOP = 1,
-  TEST_TMP = 2,
+  TEST_DEFAULT = 1
 } TestType;
 
 typedef struct 
@@ -220,7 +219,7 @@ retry:
            * accessible.
            */
           g_free (uri);
-          if (job->type == TEST_TMP)
+          if (job->type == TEST_DEFAULT)
             {
               retval = NULL;
               goto out;
@@ -266,7 +265,6 @@ screenshot_build_filename_async (const gchar *save_dir,
 
   job->base_uris[0] = sanitize_save_directory (save_dir);
   job->base_uris[1] = get_default_screenshot_dir ();
-  job->base_uris[2] = g_strconcat ("file://", g_get_tmp_dir (), NULL);
   job->iteration = 0;
   job->type = TEST_LAST_DIR;
 



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