New Desktop Command 〈2025-2027〉

fn get_windows_gpu() -> String let output = Command::new("wmic") .args(&["path", "win32_videocontroller", "get", "name"]) .output(); if let Ok(out) = output let stdout = String::from_utf8_lossy(&out.stdout); let lines: Vec<&str> = stdout.lines().collect(); if lines.len() > 1 return lines[1].trim().to_string();

// GPU (first detected) let gpu = if cfg!(target_os = "windows") get_windows_gpu() else if cfg!(target_os = "linux") get_linux_gpu() else if cfg!(target_os = "macos") get_macos_gpu() else "Unknown".to_string() ; new desktop command

"Unknown".to_string()

if args.len() > 1 && (args[1] == "-v" || args[1] == "--version") { println!("qfetch version {}", VERSION); return; } fn get_windows_gpu() -&gt

// Disk (root partition) let mut disk_info = "N/A".to_string(); for disk in sys.disks() { if cfg!(target_os = "windows") && disk.mount_point().to_str() == Some("C:") || cfg!(target_os = "linux") && disk.mount_point().to_str() == Some("/") || cfg!(target_os = "macos") && disk.mount_point().to_str() == Some("/") { let total = disk.total_space() / (1024 * 1024 * 1024); let available = disk.available_space() / (1024 * 1024 * 1024); let used = total - available; disk_info = format!("{} GiB / {} GiB", used, total); break; } } String let output = Command::new("wmic") .args(&["path"