Files
tauri-plugins-workspace/.changes/updater-appimage-tmp-fallback.md
T
Lucas Fernandes Nogueira 24e6451b11 fix(updater): fall back to the next temp location for AppImage updates (#3693)
- `tempdir_in(..)?` and `metadata()?` returned early on the first location
  that failed (e.g. a non-writable `/tmp`), so the cache dir and the
  directory next to the AppImage were never tried. Failures now move on to
  the next location, as the deb/rpm path already did.
- The candidate list was duplicated between the AppImage and deb/rpm paths;
  both now use `tmp_dir_locations`, which also no longer unwraps the parent
  of the app path (`extract_path.parent().unwrap()`).

Compile-checked with clippy in a Linux container (default features).

plugins/updater/src/updater.rs
2026-10-11 16:14:50 -03:00

342 B

updater, updater-js
updater updater-js
patch patch

On Linux, try the next temporary directory location (the user cache directory, then the directory holding the AppImage) when a temporary directory cannot be created in the previous one, instead of failing the AppImage update right away. Also avoids a panic when the app path has no parent directory.