Skip to content

Incorrect detection of Firefox in Linux #211

Description

@speckly

Was wondering why I could not find the cookie for a specific domain despite it being stored. I found out the issue was that self.cookie_file was the path to my Firefox Developer Edition so I changed the path to the correct Firefox and it worked.

class FirefoxBased:
    """Superclass for Firefox based browsers"""

    def __init__(self, browser_name, cookie_file=None, domain_name="", **kwargs):
        self.browser_name = browser_name
        self.cookie_file = cookie_file or self.__find_cookie_file(**kwargs)
        self.cookie_file = "/home/speckles/.mozilla/firefox/g5cxou3r.default-release-1715532506105/cookies.sqlite" # TODO: Remove this!!!!!!

Perhaps its something to do with __expand_and_check_path in the same class as it returns the first result? edit: yeah it does seem like it imo

image

i use arch btw

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions