From 553ff31f78f80b6308fa1827a1a24739b214d423 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 20 Jan 2026 14:46:20 +0000 Subject: [PATCH 1/2] Initial plan From 734a6f15eb080b247f81fa078804f7d7d07cc4e7 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 20 Jan 2026 14:57:03 +0000 Subject: [PATCH 2/2] Fix whoami 2.0 API compatibility issues Co-authored-by: CBenoit <3809077+CBenoit@users.noreply.github.com> --- crates/ironrdp-client/src/config.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/ironrdp-client/src/config.rs b/crates/ironrdp-client/src/config.rs index 3477c1802..50ed4d1cc 100644 --- a/crates/ironrdp-client/src/config.rs +++ b/crates/ironrdp-client/src/config.rs @@ -442,14 +442,14 @@ impl Config { .map_or(0, |version| version.major * 100 + version.minor * 10 + version.patch) .pipe(u32::try_from) .context("cargo package version")?, - client_name: whoami::fallible::hostname().unwrap_or_else(|_| "ironrdp".to_owned()), + client_name: whoami::hostname().unwrap_or_else(|_| "ironrdp".to_owned()), // NOTE: hardcode this value like in freerdp // https://github.com/FreeRDP/FreeRDP/blob/4e24b966c86fdf494a782f0dfcfc43a057a2ea60/libfreerdp/core/settings.c#LL49C34-L49C70 client_dir: "C:\\Windows\\System32\\mstscax.dll".to_owned(), platform: match whoami::platform() { whoami::Platform::Windows => MajorPlatformType::WINDOWS, whoami::Platform::Linux => MajorPlatformType::UNIX, - whoami::Platform::MacOS => MajorPlatformType::MACINTOSH, + whoami::Platform::Mac => MajorPlatformType::MACINTOSH, whoami::Platform::Ios => MajorPlatformType::IOS, whoami::Platform::Android => MajorPlatformType::ANDROID, _ => MajorPlatformType::UNSPECIFIED,