From e88b8f63bf0968e524065ea198f186fb36ec53ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filip=20Toma=C5=9Bko?= Date: Mon, 14 Jul 2025 22:10:57 +0000 Subject: [PATCH] #132 replace default Windows app with `explorer` --- plotly/src/plot.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plotly/src/plot.rs b/plotly/src/plot.rs index 4e18fffc..44b3b9db 100644 --- a/plotly/src/plot.rs +++ b/plotly/src/plot.rs @@ -864,8 +864,8 @@ impl Plot { #[cfg(target_os = "windows")] fn show_with_default_app(temp_path: &str) { use std::process::Command; - Command::new("cmd") - .args(&["/C", "start", &format!(r#"{}"#, temp_path)]) + Command::new("explorer") + .arg(temp_path) .spawn() .expect(DEFAULT_HTML_APP_NOT_FOUND); }