Skip to content

Commit

Permalink
[beta] Development Build v21 • Beta. Fix auto start installer?
Browse files Browse the repository at this point in the history
  • Loading branch information
DIDIRUS4 committed Jan 16, 2024
1 parent 94a30e9 commit 6acd174
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions theseus/src/api/download.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,10 @@ async fn download_file(download_url: &str, local_filename: &str, os_type: &str,
if (auto_update_supported) {
let status;
if (os_type.to_lowercase() == "Windows".to_lowercase()) {
status = Command::new("cmd")
.arg("/C")
.arg(format!("start \"{}\"", full_path.to_str().unwrap_or_default()))
status = Command::new("explorer")
.arg(download_dir.display().to_string())
.status()
.await
.expect("[download_file] • Failed to execute command");
.expect("Failed to open downloads folder");
} else if (os_type.to_lowercase() == "MacOS".to_lowercase()) {
status = Command::new("open")
.arg(full_path.to_str().unwrap_or_default())
Expand Down

0 comments on commit 6acd174

Please sign in to comment.