Skip to content

Commit a80b192

Browse files
committed
fix(paths): add macOS branch to install_dir() (helper bin folder)
install_dir() (where auto-downloaded helpers like go2rtc land) had Windows and Linux branches but no macOS one, so on macOS it fell through to a relative "bin" path — a go2rtc download would land in the current working directory instead of the app-data folder. Add the macOS branch mirroring resolve_db_path/ resolve_log_dir: ~/Library/Application Support/kite-gc/bin. Co-Authored-By: Claude Opus 4.8
1 parent 770fa33 commit a80b192

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

src-tauri/src/flightlog/decoder.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,16 @@ pub fn install_dir() -> PathBuf {
5858
.join("bin");
5959
}
6060
}
61+
#[cfg(target_os = "macos")]
62+
{
63+
if let Ok(home) = std::env::var("HOME") {
64+
return PathBuf::from(home)
65+
.join("Library")
66+
.join("Application Support")
67+
.join("kite-gc")
68+
.join("bin");
69+
}
70+
}
6171
PathBuf::from("bin")
6272
}
6373

0 commit comments

Comments
 (0)