diff options
| author | Naz <ndpm13@ch-naseem.com> | 2025-08-09 13:58:56 +0100 |
|---|---|---|
| committer | Naz <ndpm13@ch-naseem.com> | 2025-08-09 13:58:56 +0100 |
| commit | e21127f9b26796cf2ff4380b8b42d2ebd8645a2a (patch) | |
| tree | 7da98d5bc9ea3bb6bd9383fb7a2bbe0433216fc3 | |
| parent | 398e86fa33a5730fa49756e411299dee6e5b8bd9 (diff) | |
✨feat: hide stdout of --appimage-extract
| -rw-r--r-- | src/appimage.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/appimage.rs b/src/appimage.rs index 62cc8be..07fb990 100644 --- a/src/appimage.rs +++ b/src/appimage.rs @@ -1,5 +1,8 @@ use serde::{Deserialize, Serialize}; -use std::{path::PathBuf, process::Command}; +use std::{ + path::PathBuf, + process::{Command, Stdio}, +}; use tokio::fs; use crate::{Error, InstallArgs, Result, desktops_dir, icons_dir}; @@ -53,6 +56,7 @@ impl AppImage { .arg("--appimage-extract") .arg("*.desktop") .current_dir(&temp_dir) + .stdout(Stdio::null()) .spawn()? .wait()?; @@ -61,12 +65,14 @@ impl AppImage { .arg("--appimage-extract") .arg("usr/share/icons/hicolor/512x512/apps/*.png") .current_dir(&temp_dir) + .stdout(Stdio::null()) .spawn()? .wait()?; Command::new(&self.file_path) .arg("--appimage-extract") .arg("usr/share/icons/hicolor/256x256/apps/*.png") .current_dir(&temp_dir) + .stdout(Stdio::null()) .spawn()? .wait()?; |
