Skip to content

Commit 1518362

Browse files
fsktomandrei-ng
authored andcommitted
#132 replace default Windows app with explorer
1 parent f8de449 commit 1518362

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plotly/src/plot.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -864,8 +864,8 @@ impl Plot {
864864
#[cfg(target_os = "windows")]
865865
fn show_with_default_app(temp_path: &str) {
866866
use std::process::Command;
867-
Command::new("cmd")
868-
.args(&["/C", "start", &format!(r#"{}"#, temp_path)])
867+
Command::new("explorer")
868+
.arg(temp_path)
869869
.spawn()
870870
.expect(DEFAULT_HTML_APP_NOT_FOUND);
871871
}

0 commit comments

Comments
 (0)