chore: set default value to wm
on define
This commit is contained in:
parent
5325829113
commit
8de5caf172
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -64,7 +64,7 @@ checksum = "7ff69b9dd49fd426c69a0db9fc04dd934cdb6645ff000864d98f7e2af8830eaa"
|
|||
|
||||
[[package]]
|
||||
name = "bunbun"
|
||||
version = "1.0.0"
|
||||
version = "1.1.0"
|
||||
dependencies = [
|
||||
"clap",
|
||||
"colored",
|
||||
|
|
|
@ -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!();
|
||||
|
|
Loading…
Reference in a new issue