Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chromium Linux cookies path does not include Snap Chromium path #208

Open
Tuupertunut opened this issue Jun 10, 2024 · 0 comments
Open

Chromium Linux cookies path does not include Snap Chromium path #208

Tuupertunut opened this issue Jun 10, 2024 · 0 comments

Comments

@Tuupertunut
Copy link

Ubuntu 22.04 downloads Chromium from Snap Store by default. The Snap version of Chromium stores its cookies in ~/snap/chromium/common/chromium/Default/Cookies.

class Chromium(ChromiumBased):
"""Class for Chromium"""
def __init__(self, cookie_file=None, domain_name="", key_file=None):
args = {
'linux_cookies': [
'~/.config/chromium/Default/Cookies',
'~/.config/chromium/Profile */Cookies',
'~/.var/app/org.chromium.Chromium/config/chromium/Default/Cookies',
'~/.var/app/org.chromium.Chromium/config/chromium/Profile */Cookies'
],

Looking at the code, it seems that that Snap path is missing. Similar fix has been made for Snap Firefox before in PR #134. The relevant Firefox code looks like this:

class Firefox(FirefoxBased):
"""Class for Firefox"""
def __init__(self, cookie_file=None, domain_name=""):
args = {
'linux_data_dirs': [
'~/snap/firefox/common/.mozilla/firefox',
'~/.mozilla/firefox'
],

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant