From 32a480e80cb9d617c0a61dcc61a9fc2259f2afc4 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Sat, 12 May 2012 04:26:02 +0200 Subject: [PATCH] Use midori-prefixed temp folder in midori_view_save_source --- midori/midori-view.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/midori/midori-view.c b/midori/midori-view.c index 9c89d338..00863f48 100644 --- a/midori/midori-view.c +++ b/midori/midori-view.c @@ -5299,11 +5299,11 @@ midori_view_save_source (MidoriView* view, if (!outfile) { gchar* extension = midori_view_get_uri_extension (uri); - gchar* filename = g_strdup_printf ("%uXXXXXX%s", + unique_filename = g_strdup_printf ("%s/midori-%s/%uXXXXXX%s", + g_get_tmp_dir (), g_get_user_name (), g_str_hash (uri), midori_view_fallback_extension (view, extension)); g_free (extension); - fd = g_file_open_tmp (filename, &unique_filename, NULL); - g_free (filename); + fd = g_mkstemp (unique_filename); } else { -- 2.39.5