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

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.
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.

1 participant