We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff7bc2f commit 00f5802Copy full SHA for 00f5802
src-tauri/src/lib.rs
@@ -12,6 +12,7 @@ use serde_json::{json, Value};
12
use std::fs::metadata;
13
use std::process::Command;
14
use std::{
15
+ env,
16
fs::{self, File},
17
io::Read,
18
path::{Path, PathBuf},
@@ -1273,6 +1274,11 @@ use tauri::Emitter;
1273
1274
1275
#[cfg_attr(mobile, tauri::mobile_entry_point)]
1276
pub fn run() {
1277
+ // this is here because macos bundled .app does not inherit path
1278
+ #[cfg(target_os = "macos")]
1279
+ {
1280
+ env::set_var("PATH", "/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/local/bin:/opt/local/sbin");
1281
+ }
1282
let log_dir = idf_im_lib::get_log_directory().unwrap_or_else(|| {
1283
error!("Failed to get log directory.");
1284
PathBuf::from("")
0 commit comments