[Xfce4-commits] <midori:master> Don't use "path" setting in web cache to create the folder

Christian Dywan noreply at xfce.org
Thu Oct 14 22:40:01 CEST 2010


Updating branch refs/heads/master
         to 52d7a43e2829a59ae938363da2140327b81153e8 (commit)
       from fb3fb594a9b87312abc60b48db390fac7dce8663 (commit)

commit 52d7a43e2829a59ae938363da2140327b81153e8
Author: Christian Dywan <christian at twotoasts.de>
Date:   Thu Oct 14 22:20:21 2010 +0200

    Don't use "path" setting in web cache to create the folder

 extensions/web-cache.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/extensions/web-cache.c b/extensions/web-cache.c
index a88a22f..a0266fa 100644
--- a/extensions/web-cache.c
+++ b/extensions/web-cache.c
@@ -436,12 +436,14 @@ static void
 web_cache_activate_cb (MidoriExtension* extension,
                        MidoriApp*       app)
 {
-    const gchar* cache_path = midori_extension_get_string (extension, "path");
+    gchar* cache_path = g_build_filename (g_get_user_cache_dir (),
+                                          PACKAGE_NAME, "web", NULL);
     KatzeArray* browsers;
     MidoriBrowser* browser;
     SoupSession* session = webkit_get_default_session ();
 
     katze_mkdir_with_parents (cache_path, 0700);
+    g_free (cache_path);
     g_signal_connect (session, "request-queued",
                       G_CALLBACK (web_cache_session_request_queued_cb), extension);
 



More information about the Xfce4-commits mailing list