fix: use 'cmd /c start' instead of 'explorer' to open URLs on Windows (#741)

explorer.exe treats URLs as file paths, opening a file dialog.
'cmd /c start' properly delegates URLs to the default browser.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Narvis Bot
2026-03-03 01:17:40 -08:00
parent 844e2b56dc
commit 5579e6bc5d

View File

@@ -426,8 +426,8 @@ fn open_in_shell(arg: &str) -> Result<(), String> {
#[cfg(target_os = "windows")]
let mut command = {
let mut cmd = Command::new("explorer");
cmd.arg(arg);
let mut cmd = Command::new("cmd");
cmd.args(["/c", "start", "", arg]);
cmd
};