From 6ade80cd01d0473dc1268d35a9db89dc03b1b9e9 Mon Sep 17 00:00:00 2001 From: keis Date: Sat, 18 Dec 2010 23:07:33 +0100 Subject: put session cookies in file --- examples/data/plugins/cookies.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'examples/data/plugins') diff --git a/examples/data/plugins/cookies.py b/examples/data/plugins/cookies.py index a4ae530..8fb9b32 100644 --- a/examples/data/plugins/cookies.py +++ b/examples/data/plugins/cookies.py @@ -88,7 +88,7 @@ class TextStore(object): xdg_data_home = os.environ.get('XDG_DATA_HOME', os.path.join(os.environ['HOME'], '.local/share')) DefaultStore = TextStore(os.path.join(xdg_data_home, 'uzbl/cookies.txt')) -SessionStore = ListStore() +SessionStore = TextStore(os.path.join(xdg_data_home, 'uzbl/session-cookies.txt')) def accept_cookie(uzbl, cookie): for component, match in uzbl.cookie_blacklist: @@ -148,6 +148,3 @@ def init(uzbl): export_dict(uzbl, { 'cookie_blacklist' : [] }) - - for cookie in get_store(uzbl, True): - uzbl.send('add_cookie %s' % cookie) -- cgit v1.2.3