]> spindle.queued.net Git - midori/commitdiff
Don't use "path" setting in web cache to create the folder
authorChristian Dywan <christian@twotoasts.de>
Thu, 14 Oct 2010 20:20:21 +0000 (22:20 +0200)
committerChristian Dywan <christian@twotoasts.de>
Thu, 14 Oct 2010 20:20:21 +0000 (22:20 +0200)
extensions/web-cache.c

index a88a22fffa3256584dc725ec3ba6042e75d39f81..a0266fadb3741ac62349cb14b48f07b390700cf1 100644 (file)
@@ -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);