From: Christian Dywan Date: Sat, 12 May 2012 02:26:02 +0000 (+0200) Subject: Use midori-prefixed temp folder in midori_view_save_source X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=32a480e80cb9d617c0a61dcc61a9fc2259f2afc4;p=midori Use midori-prefixed temp folder in midori_view_save_source --- 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 {