adding surf-directory.
This commit is contained in:
parent
05bf05e4a2
commit
92e8fd101c
1 changed files with 2 additions and 1 deletions
3
surf.c
3
surf.c
|
@ -472,7 +472,8 @@ int main(int argc, char *argv[]) {
|
||||||
/* cookie persistance */
|
/* cookie persistance */
|
||||||
s = webkit_get_default_session();
|
s = webkit_get_default_session();
|
||||||
home = g_get_home_dir();
|
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);
|
cookiejar = soup_cookie_jar_text_new(filename, FALSE);
|
||||||
soup_session_add_feature(s, SOUP_SESSION_FEATURE(cookiejar));
|
soup_session_add_feature(s, SOUP_SESSION_FEATURE(cookiejar));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue