use anyhow::Result; use tokio::process::{Child, Command}; use crate::profile::Profile; use crate::util; #[cfg(target_os = "linux")] pub fn start(p: &Profile) -> Result { Ok(Command::new(p.wine_runtime.as_ref().unwrap()) .env( "SEGATOOLS_CONFIG_PATH", util::profile_dir(&p).join("segatools.ini"), ) .env("WINEPREFIX", p.wine_prefix.as_ref().unwrap()) .arg(p.path.join("start.bat")) .spawn()?) }