mirror of
https://github.com/storytold/photocraft.git
synced 2026-11-17 07:25:16 +00:00
* feat(linux): say so when no file dialog can open (#3354) File › Open / Save / Export did nothing on a minimal Wayland session (labwc, Void) and said nothing: rfd loads libdbus-1 for the XDG file chooser portal and falls back to zenity, and when neither works it only logs and answers "nothing picked", which the app took for Cancel. A background probe now looks once for the pieces (libdbus in the linker cache, the portal's FileChooser interface on the session bus, zenity on PATH). When a dialog comes back empty and none of them is there, the shell answers with the new FileDialogAnswer::Unavailable and the status bar tells the user what to install. The probe only explains an empty answer; it never blocks a dialog, and anything it can't tell counts as present. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> * fix(linux): read the ldconfig cache on non-English systems The startup library check and the new file dialog probe parse `ldconfig -p`, but accepted the listing only when its first line contained "libs found in cache". On a German system the header is "5522 Bibliotheken im Cache ... gefunden", so the cache was treated as unreadable and the check silently fell back to a directory search. Run ldconfig with LC_ALL=C, and accept any listing that starts with a count. Test: a translated header is a valid listing. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> * file_dialog_probe: no dead-code errors off Linux Findings, problem and on_path are only used by the Linux probe (and the tests); the empty non-Linux start() was never called. Windows/macOS clippy -D warnings failed on them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com> Co-authored-by: Brandon Thomas <echelon@gmail.com>