chore: set default value to wm on define

This commit is contained in:
Muhammad Nauman Raza 2024-03-24 14:06:23 +00:00
parent 14b782eac4
commit 7ef06848cd
Signed by: devraza
GPG key ID: 91EAD6081011574B
2 changed files with 2 additions and 4 deletions

2
Cargo.lock generated
View file

@ -64,7 +64,7 @@ checksum = "7ff69b9dd49fd426c69a0db9fc04dd934cdb6645ff000864d98f7e2af8830eaa"
[[package]]
name = "bunbun"
version = "1.0.0"
version = "1.1.0"
dependencies = [
"clap",
"colored",

View file

@ -41,14 +41,12 @@ fn main() {
let kernel = System::kernel_version().unwrap_or(String::from("N/A"));
let pretty = distro();
let wm: &str;
let mut wm: &str = "N/A";
if cfg!(windows) {
wm = "Aero";
} else if cfg!(unix) {
wm = env!("XDG_CURRENT_DESKTOP");
} else {
wm = "N/A";
}
println!();