Skip to content

fix(linux): render PDF content in file previews - #20

Open
ooonea wants to merge 2 commits into
jonx:mainfrom
ooonea:linux-pdf-previews
Open

ooonea wants to merge 2 commits into
jonx:mainfrom
ooonea:linux-pdf-previews

Conversation

@ooonea

@ooonea ooonea commented Nov 1, 2026 •

Copy link
Copy Markdown

Linux cannot render a PDF preview on a cache miss with GdkPixbuf alone. Render the first page with Poppler when available, and keep PDF bytes out of the text preview.

Limit the renderer's runtime and captured output so a stalled helper does not hold up preview workers.

Tested real Poppler rendering of an extensionless PDF with spaces in its path, plus timeout and child reaping when the renderer stalls. The native text-preview regressions pass.

PDF preview on Linux

ooonea and others added 2 commits November 1, 2026 14:12
Render the first page on a thumbnail cache miss using pdftoppm. Detect PDFs by their header and return the image to the existing preview, grid and viewer caches without writing nonstandard freedesktop thumbnails.

Assisted-by: OpenAI Codex
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