Skip to content

AI-native design editor. Open-source Figma alternative.

fix(tauri): fix PATH not inherited by GUI app on macOS/Linux

Danila Poyarkov1f073859c936
diff --git a/desktop/Cargo.toml b/desktop/Cargo.toml
index 225d30200..2e49ddaf1 100644
--- a/desktop/Cargo.toml
+++ b/desktop/Cargo.toml
@@ -29,4 +29,5 @@ tauri-plugin-shell = "2"
zstd = "0.13"
zip = { version = "2", default-features = false }
font-kit = "0.14.3"
+fix-path-env = { git = "https://github.com/tauri-apps/fix-path-env-rs", branch = "dev" }
diff --git a/desktop/src/lib.rs b/desktop/src/lib.rs
index 278876e1b..a95d64c00 100644
--- a/desktop/src/lib.rs
+++ b/desktop/src/lib.rs
@@ -216,6 +216,7 @@ fn show_main_window<R: tauri::Runtime>(app: &tauri::AppHandle<R>) {
#[cfg_attr(mobile, tauri::mobile_entry_point)]
pub fn run() {
+ let _ = fix_path_env::fix();
tauri::Builder::default()
.invoke_handler(tauri::generate_handler![
build_fig_file,