From: Enno Boland (Gottox) Date: Mon, 8 Jun 2009 07:39:00 +0000 (+0200) Subject: adding surf-directory. X-Git-Url: https://git.danieliu.xyz/?a=commitdiff_plain;h=92e8fd101c7b74cd9139bcdd061ab4a58f19a193;p=surf.git adding surf-directory. --- diff --git a/surf.c b/surf.c index caf5391..97981b7 100644 --- a/surf.c +++ b/surf.c @@ -472,7 +472,8 @@ int main(int argc, char *argv[]) { /* cookie persistance */ s = webkit_get_default_session(); home = g_get_home_dir(); - filename = g_build_filename(home, ".surf-cookies", NULL); + filename = g_build_filename(home, ".surf", "cookies", NULL); + g_mkdir(g_path_get_dirname(filename), 0755); cookiejar = soup_cookie_jar_text_new(filename, FALSE); soup_session_add_feature(s, SOUP_SESSION_FEATURE(cookiejar));