jesec / flood

A modern web UI for various torrent clients with a Node.js backend and React frontend.
https://flood.js.org
GNU General Public License v3.0
2.24k stars 135 forks source link

Windows + qBittorrent can't see disk usage/mount points #812

Closed l4kr closed 1 month ago

l4kr commented 1 month ago

Type: Bug Report

Your Environment

Summary

When launching Flood on Windows this shows up in the terminal: DiskUsage: failed to update: ENOENT: spawn wmic ENOENT Otherwise works perfectly fine on Linux.

Expected Behavior

Flood should show disk usage on Windows.

Steps to Reproduce

  1. Launch qBittorrent on Windows
  2. Launch Flood on Windows
  3. Open Flood web UI

Context

image
trim21 commented 1 month ago

you need to install wmic by yourself

l4kr commented 1 month ago

Thank you for the fast reply!

Installed WMIC and it's working well.

Seems like Windows is phasing out WMIC so new Windows 11 installations do not have it installed by default. https://techcommunity.microsoft.com/t5/windows-it-pro-blog/wmi-command-line-wmic-utility-deprecation-next-steps/ba-p/4039242

Seems it would be good to get rid of this dependency at some point using Powershell.

trim21 commented 1 month ago

it would be nice to have a package that provide nisk usage info on all platform, so we can remove both du and wmic, but I didn't find one.