From bf74ac6f30fee8bbc03662899e01085f389a1255 Mon Sep 17 00:00:00 2001 From: Ludovic Marie <136255825+ludovic111@users.noreply.github.com> Date: Thu, 15 Oct 2026 03:10:27 +0200 Subject: [PATCH] Controllers: the Steam keyboard choice falls back to Horizon's without xdg-open Picked by hand on macOS or Windows, A on a text field opened nothing. Co-Authored-By: Claude Opus 5.5 --- crates/horizon-client/src/game/pad_menu.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/crates/horizon-client/src/game/pad_menu.rs b/crates/horizon-client/src/game/pad_menu.rs index 3a697c394..46a6d66b1 100644 --- a/crates/horizon-client/src/game/pad_menu.rs +++ b/crates/horizon-client/src/game/pad_menu.rs @@ -866,13 +866,16 @@ impl Game<'_> { /// Steam's on a Steam Deck (`steam://open/keyboard`, which types into /// the window like a real keyboard). fn pad_open_keyboard(&mut self) { - if gamepad::steam_keyboard(self.settings.controller.keyboard) { - let _ = std::process::Command::new("xdg-open") + // Without xdg-open (macOS, Windows), Horizon's keyboard instead. + if gamepad::steam_keyboard(self.settings.controller.keyboard) + && std::process::Command::new("xdg-open") .arg("steam://open/keyboard") .stdin(std::process::Stdio::null()) .stdout(std::process::Stdio::null()) .stderr(std::process::Stdio::null()) - .spawn(); + .spawn() + .is_ok() + { return; } self.pad.menu.osk = Some(Keyboard::default());