]> spindle.queued.net Git - midori/commitdiff
Set an invalid config dir in app mode to prevent accidental pickup
authorChristian Dywan <christian@twotoasts.de>
Mon, 7 Dec 2009 19:58:07 +0000 (20:58 +0100)
committerChristian Dywan <christian@twotoasts.de>
Mon, 7 Dec 2009 19:58:07 +0000 (20:58 +0100)
We don't want web apps to accidentally use configuration files from
the default folder, eg. for speed dial.

midori/main.c

index 9d45f38240ddc67d5b7fb278fce2a9755b8579e3..19f2e6e49a0b08b5c113d7e4ff0c2680410c0655 100644 (file)
@@ -1758,6 +1758,7 @@ main (int    argc,
                       NULL);
         g_object_unref (settings);
         g_object_set (browser, "settings", settings, NULL);
+        sokoke_set_config_dir ("/");
         g_signal_connect (browser, "notify::load-status",
             G_CALLBACK (midori_web_app_browser_notify_load_status_cb), NULL);
         midori_browser_add_uri (browser, webapp);