mirror of
https://github.com/koala73/worldmonitor.git
synced 2026-04-25 17:14:57 +02:00
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:
@@ -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
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user