// Shell let shell = env::var("SHELL").unwrap_or_else(|_| "unknown".to_string()) .split('/').last().unwrap_or("unknown").to_string();
fn gather_info() -> SystemInfo { let mut sys = System::new_all(); sys.refresh_all(); new desktop command
Below is the complete source code, build instructions, and usage examples. // qfetch - A fast, modern system information tool for the desktop // Command: qfetch [OPTIONS] use std::process::Command; use std::env; use sysinfo::System, SystemExt, CpuExt, DiskExt; use whoami; // Shell let shell = env::var("SHELL")
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. fn gather_info() ->