Repository navigation
Conversation
Expand argument field codes once while keeping program paths literal. Retry cached failures made before embedded options were supported.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
|
Nice one, will add to the next build! Major changes coming |
|
Embedded thumbnailer field codes were passed literally. Thumbnailer field codes expand inside options such as --output=%o (578b080a73, v0.4.0). Thanks @k-kostin! Release. |
Kirill Kostin's be05cd3 (thumbnailer field codes), reimplemented in 6a13013; every conflict resolved to the reviewed stage code, which already carries all of its behaviour and tests. Co-authored-by: k-kostin <[email protected]>
F3D 3.5.0's packaged thumbnailers use
--output=%o --resolution=%s,%s %i. Flea currently substitutes only whole-token field codes, so it launches F3D with literal%oand%sin those options and cannot produce the requested thumbnail. This also affects other thumbnailers that put field codes inside options.Expand
%i,%u,%oand%sanywhere within each already-tokenised argument. A single pass preserves argument boundaries and keeps replacement text literal, including percent signs, spaces, quotes and shell metacharacters in filenames.%%becomes a literal percent; unknown codes and a trailing%retain their existing literal behavior. The validated executable remains unchanged, and%i,%uand the sandbox bind still derive from the same canonical path.Include an expansion-version salt in the thumbnailer-table fingerprint so existing failure markers do not suppress a newly working thumbnailer after upgrading. Valid cached thumbnails remain reusable. Update the documented behavior and re-derive the existing
thumbspec.rsbudget from 479 to 480 lines for that salt.Validation on Arch Linux x86_64, Rust 1.98.0:
thumbargvtests pass afterward.cargo test --lockedandcargo test --release --locked: 2959 passed, 2 existing ignored tests in each profile.git diff --checkpass..thumbnailer, installed Flea 0.3.12 fails all three entries; the patched backend renders all three to 256 × 256 PNGs using the same cache: a filename with spaces, a Unicode filename with percent signs and shell metacharacters, and a symlink. No wrapper is used for this check. Each run uses private XDG data, configuration, runtime and cache directories; the user's installed Flea and caches are untouched.The full
tests/run-all.shGUI/media battery was not run. No renderer, dependency, sandbox limit or worker-count change is included.Summary by CodeRabbit
New Features
%%, unknown codes, and trailing%sequences are preserved as written.Bug Fixes
Documentation