Prepare Linux builds and validate native desktop runtime
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user