New Desktop Command [SAFE]

"Unknown".to_string()

I've developed a complete, ready-to-run piece of software: – a modern, cross-platform desktop system information tool written in Rust. It fetches and displays key hardware/OS details in a clean, customizable layout, similar to neofetch but with a fresh command set and lower resource usage. new desktop command

fn gather_info() -> SystemInfo { let mut sys = System::new_all(); sys.refresh_all(); "Unknown"

// Uptime let uptime_secs = System::uptime(); let days = uptime_secs / 86400; let hours = (uptime_secs % 86400) / 3600; let minutes = (uptime_secs % 3600) / 60; let uptime = format!("{}d {}h {}m", days, hours, minutes); "Unknown".to_string() I've developed a complete

fn get_resolution() -> String { if cfg!(target_os = "windows") { let output = Command::new("wmic") .args(&["path", "Win32_VideoController", "get", "CurrentHorizontalResolution,CurrentVerticalResolution"]) .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 { let parts: Vec<&str> = lines[1].split_whitespace().collect(); if parts.len() >= 2 { return format!("{}x{}", parts[0], parts[1]); } } } } else if cfg!(target_os = "linux") let output = Command::new("xrandr").arg("--current").output(); if let Ok(out) = output let stdout = String::from_utf8_lossy(&out.stdout); for line in stdout.lines() if line.contains(" connected") && line.contains('x') w.contains('x')) if res.contains('+') return res.split('+').next().unwrap_or("Unknown").to_string();