Skip to content

Fix fontconfigs β†’ fontconfig path in pythonlib/utils.py#539

Open
azasypkin wants to merge 1 commit intodaijro:mainfrom
secutils-dev:secutils-fontconfig-patch
Open

Fix fontconfigs β†’ fontconfig path in pythonlib/utils.py#539
azasypkin wants to merge 1 commit intodaijro:mainfrom
secutils-dev:secutils-fontconfig-patch

Conversation

@azasypkin
Copy link
Copy Markdown

Thank you for the great project!


The browser bundle renamed the fontconfigs directory to fontconfig in #519, but pythonlib/camoufox/utils.py still references the old fontconfigs path.

This causes a FileNotFoundError at runtime when launching with OS fingerprint spoofing:

FileNotFoundError: fonts.conf not found in 
/root/.cache/camoufox/browsers/official/146.0.1-alpha.25/fontconfigs/windows!

Description

This PR updates the path reference in utils.py to match the new directory name.

Type of Change

  • Bug fix
  • New feature
  • Documentation update
  • Other

Testing

Tested locally

Fingerprint Report

It's pythonlib-only change, browser hasn't changed.

Checklist

  • My changes are focused on a single logical change

Thank you for the great project!
===
The browser bundle renamed the `fontconfigs` directory to `fontconfig` in daijro#519, but `pythonlib/camoufox/utils.py` still references the old `fontconfigs` path. 

This causes a `FileNotFoundError` at runtime when launching with OS fingerprint spoofing:
```
FileNotFoundError: fonts.conf not found in /root/.cache/camoufox/browsers/official/146.0.1-alpha.25/fontconfigs/windows!
```

This PR updates the path reference in `utils.py` to match the new directory name.
@rubenvereecken
Copy link
Copy Markdown
Contributor

@icepaq Confirmed the bug β€” PR #519 renamed the directory but utils.py wasn't updated. Already applied this to my local branch, happy to see this merged.

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

Successfully merging this pull request may close these issues.

2 participants