Skip to content

Commit

Permalink
Added launch code back
Browse files Browse the repository at this point in the history
  • Loading branch information
EliteAsian123 committed Nov 16, 2023
1 parent 3b8ae81 commit 1a33e92
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src-tauri/src/app_profile/yarg.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use async_trait::async_trait;
use minisign::{PublicKeyBox, SignatureBox};
use tauri::Manager;
use std::{path::{PathBuf, Path}, fs::{File, remove_file}};
use std::{path::{PathBuf, Path}, fs::{File, remove_file}, process::Command};

use crate::utils::*;

Expand Down Expand Up @@ -161,6 +161,10 @@ impl AppProfile for YARGAppProfile {
fn launch(
&self
) -> Result<(), String> {
todo!()
let path = self.get_exec()?;
Command::new(&path)
.spawn()
.map_err(|e| format!("Failed to start YARG. Is it installed?\n{:?}", e))?;
Ok(())
}
}

0 comments on commit 1a33e92

Please sign in to comment.