Skip to content

Open-source download manager & offline media toolbox for YouTube, music, social media, learning platforms & 1,800+ sites. Built with Tauri 2.0, Rust & Svelte.

refactor: remove redundant environment variable setup in run function

Tonhobbdcdbd9359c
diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs
index 1af81efd..21e89bd8 100644
--- a/src-tauri/src/lib.rs
+++ b/src-tauri/src/lib.rs
@@ -45,16 +45,6 @@ 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));
- }
-
- std::env::set_var("PYTHONIOENCODING", "utf-8");
- std::env::set_var("PYTHONUTF8", "1");
-
tracing_subscriber::fmt::init();
let session = Arc::new(tokio::sync::Mutex::new(None));