Skip to content

Commit

Permalink
fixed links opening in windows
Browse files Browse the repository at this point in the history
  • Loading branch information
JustAGod1 committed Dec 12, 2021
1 parent f1cefdf commit 804c975
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ pub fn open_in_app(str: &str) -> Result<(), String> {
let mut process = match std::env::consts::OS {
"linux" => Command::new("sh").arg("-c").arg(format!("xdg-open {}", str)).spawn(),
"macos" => Command::new("sh").arg("-c").arg(format!("open {}", str)).spawn(),
"windows" => Command::new("cmd").arg("/c").arg(str).spawn(),
"windows" => Command::new("cmd").arg("/c").arg("start").arg(str).spawn(),
_ => {
return Err("Операционная система не поддерживается".to_owned());
}
Expand Down

0 comments on commit 804c975

Please sign in to comment.