diff options
| author | akbash <akbash@herdr.dev> | 2026-08-18 00:11:20 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-08-18 00:11:20 +0300 |
| commit | 76211757ecce73cba981bdf6704954b25a100a8c (patch) | |
| tree | 8686202ba5d6bb32d13e9d911b3aa4236bb30a6c /src/platform/windows.rs | |
| parent | 19022d03c902de586009b1d156bc20b01ce48135 (diff) | |
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>
Diffstat (limited to 'src/platform/windows.rs')
| -rw-r--r-- | src/platform/windows.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/platform/windows.rs b/src/platform/windows.rs index 4e444877..7aee384e 100644 --- a/src/platform/windows.rs +++ b/src/platform/windows.rs @@ -1889,7 +1889,7 @@ pub fn read_clipboard_text() -> Option<String> { None } -pub fn open_url(url: &str) -> std::io::Result<()> { +pub fn open_url(url: &str) -> std::io::Result<Option<std::process::Child>> { let operation = wide_null("open"); let url = wide_null(url); let result = unsafe { @@ -1903,7 +1903,7 @@ pub fn open_url(url: &str) -> std::io::Result<()> { ) }; if result as isize > 32 { - Ok(()) + Ok(None) } else { Err(std::io::Error::other(format!( "failed to open URL with ShellExecuteW: code {}", |
