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
fix: update reveal_file to use tokio::process for async command execution
Tonho06f1243c0763
diff --git a/src-tauri/src/commands/downloads.rs b/src-tauri/src/commands/downloads.rsindex 7956884e..3e33609a 100644--- a/src-tauri/src/commands/downloads.rs+++ b/src-tauri/src/commands/downloads.rs@@ -342,7 +342,7 @@ pub async fn reveal_file(path: String) -> Result<(), String> {let file_path = std::path::Path::new(&path);let dir = file_path.parent().unwrap_or(file_path);- let portal_result = std::process::Command::new("gdbus")+ let portal_result = tokio::process::Command::new("gdbus").args(["call", "--session","--dest", "org.freedesktop.portal.Desktop",@@ -354,7 +354,8 @@ pub async fn reveal_file(path: String) -> Result<(), String> {]).stdout(std::process::Stdio::null()).stderr(std::process::Stdio::null())- .status();+ .status()+ .await;match portal_result {Ok(status) if status.success() => {}