Prepare Linux builds and validate native desktop runtime

This commit is contained in:
2026-10-14 18:06:22 -07:00
parent edef2520af
commit 30cbfeedd6
15 changed files with 481 additions and 27 deletions
+1 -5
View File
@@ -9,6 +9,7 @@ use serde::Serialize;
use tauri::{AppHandle, Emitter, Manager, State};
use crate::workspace::{current_root_path, WorkspaceError, WorkspaceState};
use crate::terminal_platform::find_executable;
type PtyResult<T> = Result<T, WorkspaceError>;
@@ -85,11 +86,6 @@ pub struct ShellProfile {
executable: PathBuf,
}
fn find_executable(name: &str) -> Option<PathBuf> {
std::env::split_paths(&std::env::var_os("PATH").unwrap_or_default())
.map(|dir| dir.join(name)).find(|path| path.is_file())
}
#[tauri::command]
pub fn pty_profiles() -> Vec<ShellProfile> {
let candidates = if cfg!(windows) {