diff options
-rwxr-xr-x | git-bz | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -621,11 +621,15 @@ def get_bugzilla_cookies_galeon(host): def get_bugzilla_cookies_epy(host): # epiphany-webkit migrated the cookie db to a different location, but the # format is the same - profile_dir = os.path.expanduser('~/.gnome2/epiphany') + profile_dir = os.path.expanduser('~/.config/epiphany') cookies_sqlite = os.path.join(profile_dir, "cookies.sqlite") if not os.path.exists(cookies_sqlite): - # try the old location - cookies_sqlite = os.path.join(profile_dir, "mozilla/epiphany/cookies.sqlite") + # try pre-GNOME-3.6 location + profile_dir = os.path.expanduser('~/.gnome2/epiphany') + cookies_sqlite = os.path.join(profile_dir, "cookies.sqlite") + if not os.path.exists(cookies_sqlite): + # try the old location + cookies_sqlite = os.path.join(profile_dir, "mozilla/epiphany/cookies.sqlite") if not os.path.exists(cookies_sqlite): raise CookieError("%s doesn't exist" % cookies_sqlite) |