Run system thumbnailers only on files the user chose; open only known document types
- github
- github/openchronology/timeline-app
- commit
- main
- github/athanclark
Any timeline (a file, or one a server sends) could name local files and make the desktop run the system's thumbnailers on them, unsandboxed, with no click, and opening a file link relied on a list of dangerous extensions that could never be complete. - Thumbnails: the app's own Rust decoding (EXIF previews, photos, video covers) and the file manager's kept freedesktop thumbnails still work for any file. The system's thumbnailers (Linux .thumbnailer programs, Quick Look, the Windows Shell) run only on files in folders timelines were populated from (remembered in populated.json, 0600) or in a timeline the user trusted by opening one of its files; the editor then asks again for those that had none. - Opening a file link: photos, videos, sounds and a list of documents (PDF, text, Markdown, CSV, RTF, EPUB, OpenDocument, macro-free Office, GIF, BMP) open in their app; anything else, a link to anything else, or an executable non-media file is shown in its folder instead. - Thumbnail scratch folders are created 0700 with unpredictable names, and the thumbnail cache folder 0700 (narrowed if an older version made it 0755) with its thumbnails written 0600 from the start. Tests: the thumbnailer runs only when allowed, chosen() matches only files in populated folders, the editor sends trusted only after the trust prompt and re-asks then (populate-browser), file links open by allowlist (help files, installers, themes, macro documents, web pages and unknown types are shown in their folder), and scratch, cache and thumbnail permissions. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_011fFY8eruEi1xAkkMBni13B https://github.com/openchronology/timeline-app/commit/2a04d9ef5d8426360321095e37e335d3edc1ea37