fix(pdf): detect system Chromium on Linux for distros without playwright support to fix download issue #636
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Related Issue
No existing issue. This PR fixes PDF generation failures on non-Debian Linux distributions.
Description
PDF generation fails on non-Debian systems (OpenSUSE, Fedora, Arch) with "Playwright browser executable is missing" error, even when Chrome/Chromium is installed via system package managers.
Root Cause:
_find_chromium_executable()only checked Windows paths, returningNoneon Linux/macOS.Solution: Extended browser detection to support system-installed Chrome/Chromium across all platforms, enabling users on non-Debian distributions to use their system browsers when Playwright browser installation is unavailable.
Type
Proposed Changes
_find_chromium_executable()to detect Chrome/Chromium on Linux and macOS/usr/bin/chromium,/usr/bin/google-chrome,/usr/bin/google-chrome-stable)/snap/bin/chromium)Screenshots / Code Snippets (if applicable)
Before:

After:
How to Test
On non-Debian Linux (OpenSUSE, Fedora, Arch):
npm run dev:backendOn Debian/Ubuntu (regression test):
On Windows (regression test):
Checklist
Additional Information
Tested Environment:
zypperImpact:
Technical Notes:
Summary by cubic
Fixes PDF generation on non-Debian Linux by detecting system-installed Chrome/Chromium when Playwright isn’t available. Adds macOS support and keeps Windows behavior unchanged.
Written for commit 4aee8cb. Summary will update on new commits.