From f6225b1027f5d9690bc5748a79c5005a313cb50d Mon Sep 17 00:00:00 2001 From: NamedNeon <130935222+NamedNeon@users.noreply.github.com> Date: Wed, 13 Sep 2023 14:38:09 -0400 Subject: [PATCH] tie icon match to os_name --- src/main.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index 3d8674d..d8a0562 100644 --- a/src/main.rs +++ b/src/main.rs @@ -129,7 +129,7 @@ impl Information { Self { username: whoami::username(), hostname: whoami::hostname(), - os_name, + os_name: os_name.clone(), os_ver: sys.os_version(), kernel_ver: sys.kernel_version(), uptime: compound_duration::format_dhms(sys.uptime()), @@ -212,8 +212,7 @@ impl Information { Byte::from(sys.total_memory()).get_appropriate_unit(true) ), - icon: match sys - .name() + icon: match os_name .unwrap_or(String::from("Unknown System")) .as_ref() // Getting the icon for the distro.