Repository navigation
Conversation
…m can start The entrypoint drops privileges with setpriv but keeps HOME=/root, which the runtime user (PUID) cannot write. Chromium's crash reporter then aborts at startup with "chrome_crashpad_handler: --database is required", so every browser-based capture (easyx-browser-fetch) fails with "Chromium debugging page did not start". - docker-entrypoint.sh: create /tmp/easyx-home for the runtime user and export it as HOME before dropping privileges (yt-dlp and other tools also get a writable cache directory). - easyx-browser-fetch: fall back to a per-user temporary home when HOME is not writable, so the helper also works with other launchers.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Thanks for this project! I've started changing a few things with the help of Claude Code. Here is a fix for the project's built-in browser (the Chromium used by the browser helper).
Problem
docker-entrypoint.shdrops privileges withsetprivbut keepsHOME=/root, which the runtime user (PUID) cannot write.Chromium's crash reporter then aborts at startup:
so every browser-based capture done by
easyx-browser-fetchfails withChromium debugging page did not start.This is visible, for example, when a live stream falls back to the browser capture after yt-dlp could not resolve it.
Reproduce inside the running container:
Fix
docker-entrypoint.sh: create/tmp/easyx-homeowned by the runtime user and export it asHOMEbefore dropping privileges. yt-dlp and other tools also get a writable cache directory.scripts/easyx-browser-fetch.py: whenHOMEis not writable, fall back to a per-user temporary home, so the helper also works with other launchers.Testing
HOME=/tmp/easyx-homeandeasyx-browser-fetch --capture-mediastarts Chromium again (the capture reaches the page instead of failing at startup).HOME=/rootforced, the helper's fallback alone also lets Chromium start.