From 0c9e4db742c5f4b94f8ade3da016dec70ad0077e Mon Sep 17 00:00:00 2001 From: Azalea Gui <22280294+hykilpikonna@users.noreply.github.com> Date: Thu, 21 Aug 2025 03:17:28 -0400 Subject: [PATCH] [F] Fix #418 --- crates/hyfetch/src/neofetch_util.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/crates/hyfetch/src/neofetch_util.rs b/crates/hyfetch/src/neofetch_util.rs index 08688e4d..e145e4fe 100644 --- a/crates/hyfetch/src/neofetch_util.rs +++ b/crates/hyfetch/src/neofetch_util.rs @@ -486,16 +486,13 @@ pub fn get_distro_name(backend: Backend) -> Result { match backend { Backend::Neofetch => run_neofetch_command_piped(&["ascii_distro_name"]) .context("failed to get distro name from neofetch"), - Backend::Fastfetch => run_fastfetch_command_piped(&[ + Backend::Fastfetch => Ok(run_fastfetch_command_piped(&[ "--logo", "none", "-s", "OS", "--disable-linewrap", - "--os-key", - " ", - ]) - .context("failed to get distro name from fastfetch"), + ]).context("failed to get distro name from fastfetch")?.replace("OS: ", "")), #[cfg(feature = "macchina")] Backend::Macchina => { // Write ascii art to temp file