cargo+hotfix: update dependencies and update logic accordingly

This commit is contained in:
Muhammad Nauman Raza 2025-01-07 22:08:57 +00:00
parent dbe4d32011
commit 31e4ecd094
Signed by: devraza
GPG key ID: 91EAD6081011574B
3 changed files with 11 additions and 11 deletions

16
Cargo.lock generated
View file

@ -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",

View file

@ -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]

View file

@ -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();