Open-source download manager & offline media toolbox for YouTube, music, social media, learning platforms & 1,800+ sites. Built with Tauri 2.0, Rust & Svelte.
Rust downloadmanagerguihacktoberfesthomebrewlightweightlinuxlinux-distributionlocal-firstmacosmacos-packagemedia-toolboxopen-sourcerustsveltetauritrendingtrending-repositorieswindowswindows-desktopytdlp
feat: prepend managed bin dir to PATH for auto-downloaded tools
Tonho1a80221d42f0
diff --git a/README.md b/README.mdindex b249a53a..bf8de584 100644--- a/README.md+++ b/README.md@@ -101,5 +101,3 @@ Found a bug or want to suggest a feature? [Open an issue](https://github.com/ton## LicenseOmniGet is licensed under [GPL-3.0](LICENSE). The OmniGet name, logo, and Loop mascot are project trademarks not covered by the code license.--<!-- omniget media downloader youtube instagram tiktok twitter reddit twitch pinterest vimeo bluesky hotmart telegram desktop app tauri rust open source free download video audio converter clipboard batch -->diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rsindex c6968f7d..655e3297 100644--- a/src-tauri/src/lib.rs+++ b/src-tauri/src/lib.rs@@ -33,6 +33,13 @@ pub struct AppState {#[cfg_attr(mobile, tauri::mobile_entry_point)]pub fn run() {+ // Prepend managed bin dir to PATH so auto-downloaded tools (ffmpeg, ffprobe, yt-dlp) are discoverable+ if let Some(bin_dir) = dirs::data_dir().map(|d| d.join("omniget").join("bin")) {+ let sep = if cfg!(windows) { ";" } else { ":" };+ let current = std::env::var("PATH").unwrap_or_default();+ std::env::set_var("PATH", format!("{}{}{}", bin_dir.display(), sep, current));+ }+tracing_subscriber::fmt::init();let session = Arc::new(tokio::sync::Mutex::new(None));