aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar keis <keijser@gmail.com>2010-12-18 23:07:33 +0100
committerGravatar keis <keijser@gmail.com>2010-12-18 23:37:33 +0100
commit6ade80cd01d0473dc1268d35a9db89dc03b1b9e9 (patch)
tree4eb35033eaf8265785803a6fa4f2edd333cba89c
parenta24bd9a761773aad6a9512da5c3524f07c32d689 (diff)
put session cookies in file
-rw-r--r--examples/config/config1
-rw-r--r--examples/data/plugins/cookies.py5
2 files changed, 2 insertions, 4 deletions
diff --git a/examples/config/config b/examples/config/config
index caf68a1..e755be1 100644
--- a/examples/config/config
+++ b/examples/config/config
@@ -396,6 +396,7 @@ set default_mode = command
# === Post-load misc commands ================================================
sync_spawn_exec @scripts_dir/load_cookies.sh
+sync_spawn_exec @scripts_dir/load_cookies.sh @data_home/uzbl/session-cookies.txt
# Set the "home" page.
set uri = uzbl.org/doesitwork/@COMMIT
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)