From f7a80034588cd4f1e42c30c2fba0aace231aac8e Mon Sep 17 00:00:00 2001 From: Smit Barmase Date: Wed, 13 Aug 2025 18:01:40 +0530 Subject: [PATCH] remove arch and handle fedora --- crates/gpui/src/platform/linux/x11/client.rs | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/crates/gpui/src/platform/linux/x11/client.rs b/crates/gpui/src/platform/linux/x11/client.rs index ea33103ab2..5b11f93095 100644 --- a/crates/gpui/src/platform/linux/x11/client.rs +++ b/crates/gpui/src/platform/linux/x11/client.rs @@ -428,7 +428,10 @@ impl X11Client { let xcb_connection = Rc::new(xcb_connection); // bug in ibus causes it to crash, which results in us not receiving xim callbacks, see #29083 - let ximc = if get_package_version("ibus").as_deref() == Some("1.5.32~rc2-1") { + let ximc = if get_package_version("ibus") + .as_deref() + .map_or(false, |version| version.starts_with("1.5.32~rc2-1")) + { None } else { X11rbClient::init(Rc::clone(&xcb_connection), x_root_index, None).ok() @@ -2519,15 +2522,5 @@ fn get_package_version(name: &str) -> Option { } } - if let Ok(output) = new_std_command("pacman").args(["-Q", &name]).output() { - if output.status.success() { - if let Ok(stdout) = std::str::from_utf8(&output.stdout) { - if let Some(version) = stdout.trim().split_whitespace().nth(1) { - return Some(version.to_string()); - } - } - } - } - None }