api-client/packages/hoppscotch-desktop/plugin-workspace
Shreyas 13b46d52f2
fix(desktop): disk space detection (#5019)
This fix replace `sys-info v0.9.1` with
the more actively maintained `sysinfo 0.34.2`
which does return size of the disk in bytes.

Closes #5017, HFE-831

Rebased on #5010, consider merging that first.

Issues:

Appload fails to load with a "Storage full" error despite
having sufficient disk space.

This was caused by a unit mismatch in the `sys-info` crate
which returns disk space in kilobytes instead of bytes.

- sys_info::disk_info() returns values in KB, see:
  60ecf1470a/c/linux.c (L119)
- The `StorageFull` error was triggered when comparing
  raw bytes against a KB value, causing false positive

Changes:
- Rewrite the `ensure_space` function to find the correct disk of the config dir
- Add a new `StorageError::DiskNotFound` for cases where the disk cannot
  be resolved
2025-04-25 16:57:37 +05:30
..
relay fix(kernel): deterministic form data processing (#4945) 2025-04-08 14:50:04 +05:30
tauri-plugin-appload fix(desktop): disk space detection (#5019) 2025-04-25 16:57:37 +05:30
tauri-plugin-relay fix(kernel): deterministic form data processing (#4945) 2025-04-08 14:50:04 +05:30