Prepare Linux builds and validate native desktop runtime
This commit is contained in:
@@ -988,10 +988,13 @@ pub fn workspace_open_terminal(window: tauri::Window, state: State<WorkspaceStat
|
||||
let mut command = { let mut c = std::process::Command::new("powershell.exe"); c.arg("-NoExit"); c };
|
||||
#[cfg(target_os = "macos")]
|
||||
let mut command = { let mut c = std::process::Command::new("open"); c.args(["-a", "Terminal"]).arg(folder); c };
|
||||
#[cfg(any(windows, target_os = "macos"))]
|
||||
{
|
||||
command.current_dir(folder).spawn().map_err(|e| err(e.to_string()))?;
|
||||
Ok(())
|
||||
}
|
||||
#[cfg(all(unix, not(target_os = "macos")))]
|
||||
let mut command = std::process::Command::new("x-terminal-emulator");
|
||||
command.current_dir(folder).spawn().map_err(|e| err(e.to_string()))?;
|
||||
Ok(())
|
||||
{ crate::terminal_platform::open_external_terminal(folder).map_err(|reason| err(reason.to_string())) }
|
||||
}
|
||||
|
||||
#[tauri::command]
|
||||
|
||||
Reference in New Issue
Block a user