Fix unix building

This commit is contained in:
Thoronium
2023-04-26 16:08:52 -06:00
parent 7a4c28b501
commit 31f77355f1
2 changed files with 12 additions and 2 deletions

View File

@@ -341,7 +341,13 @@ fn restart_grasscutter(window: tauri::Window) -> bool {
#[cfg(unix)]
#[tauri::command]
fn restart_grasscutter(window: tauri::Window) {}
fn restart_grasscutter(window: tauri::Window) {
// Placeholder text for imports
let s = System::new();
if let Some(process) = s.process(Pid::from(1337)) {
println!("{}", process.name());
}
}
#[cfg(windows)]
#[tauri::command]