From 76211757ecce73cba981bdf6704954b25a100a8c Mon Sep 17 00:00:00 2001 From: akbash Date: Tue, 18 Aug 2026 00:11:20 +0300 Subject: fix: reap ctrl-click url openers (#2906) * fix: reap ctrl-click url openers refs #2903 * fix: scope linux opener test import refs #2903 * test: isolate url opener regression refs #2903 --------- Co-authored-by: akbash-bot <300245827+akbash-bot@users.noreply.github.com> --- src/platform/linux.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/platform/linux.rs') diff --git a/src/platform/linux.rs b/src/platform/linux.rs index f84d9e96..b5c33259 100644 --- a/src/platform/linux.rs +++ b/src/platform/linux.rs @@ -466,14 +466,14 @@ pub fn read_clipboard_text() -> Option { None } -pub fn open_url(url: &str) -> std::io::Result<()> { +pub fn open_url(url: &str) -> std::io::Result> { Command::new("xdg-open") .arg(url) .stdin(Stdio::null()) .stdout(Stdio::null()) .stderr(Stdio::null()) - .spawn()?; - Ok(()) + .spawn() + .map(Some) } pub fn read_clipboard_image() -> Option { -- cgit v1.2.3