From 31e4ecd0941cc45545adfad3af7d52748226f57a Mon Sep 17 00:00:00 2001 From: Muhammad Nauman Raza Date: Tue, 7 Jan 2025 22:08:57 +0000 Subject: [PATCH] cargo+hotfix: update dependencies and update logic accordingly --- Cargo.lock | 16 ++++++++-------- Cargo.toml | 4 ++-- src/main.rs | 2 +- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index ee69189..771df19 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -81,9 +81,9 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" [[package]] name = "clap" -version = "4.5.23" +version = "4.5.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3135e7ec2ef7b10c6ed8950f0f792ed96ee093fa088608f1c76e569722700c84" +checksum = "9560b07a799281c7e0958b9296854d6fafd4c5f31444a7e5bb1ad6dde5ccf1bd" dependencies = [ "clap_builder", "clap_derive", @@ -91,9 +91,9 @@ dependencies = [ [[package]] name = "clap_builder" -version = "4.5.23" +version = "4.5.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "30582fc632330df2bd26877bde0c1f4470d57c582bbc070376afcd04d8cb4838" +checksum = "874e0dd3eb68bf99058751ac9712f622e61e6f393a94f7128fa26e3f02f5c7cd" dependencies = [ "anstream", "anstyle", @@ -103,9 +103,9 @@ dependencies = [ [[package]] name = "clap_derive" -version = "4.5.18" +version = "4.5.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4ac6a0c7b1a9e9a5186361f67dfa1b88213572f427fb9ab038efb2bd8c582dab" +checksum = "54b755194d6389280185988721fffba69495eed5ee9feeee9a599b53db80318c" dependencies = [ "heck", "proc-macro2", @@ -289,9 +289,9 @@ dependencies = [ [[package]] name = "sysinfo" -version = "0.33.0" +version = "0.33.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "948512566b1895f93b1592c7574baeb2de842f224f2aab158799ecadb8ebbb46" +checksum = "4fc858248ea01b66f19d8e8a6d55f41deaf91e9d495246fd01368d99935c6c01" dependencies = [ "core-foundation-sys", "libc", diff --git a/Cargo.toml b/Cargo.toml index b8f3122..c892f1b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,9 +9,9 @@ license-file = "LICENSE" readme = "README.md" [dependencies] -clap = { version = "4.5.22", features = ["derive"] } +clap = { version = "4.5.24", features = ["derive"] } owo-colors = "4.1.0" -sysinfo = "0.33.0" +sysinfo = "0.33.1" whoami = "2.0.0-pre.0" [profile.release] diff --git a/src/main.rs b/src/main.rs index 87083b7..fb070f1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -82,7 +82,7 @@ fn main() { } else if cfg!(unix) { let xdg_current_desktop = var("XDG_CURRENT_DESKTOP"); let desktop = desktop_env().unwrap_or(whoami::DesktopEnv::Unknown(String::from("N/A"))).to_string(); - if desktop != "Unknown: Unknown" { + if desktop != "Unknown: N/A" { wm = desktop; } else if xdg_current_desktop.is_ok() { wm = xdg_current_desktop.unwrap();