From 7eb1e102ebc5d8645162b7e0d41a5758df633a13 Mon Sep 17 00:00:00 2001 From: Hikari Hayashi Date: Sun, 5 Jan 2025 20:29:01 +0800 Subject: [PATCH] Do not skip the first line output of `flatpak list` `flatpak list` does not output column headers if the stdout is not a TTY. --- src/backends/flatpak.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/backends/flatpak.rs b/src/backends/flatpak.rs index 69d5abc..c67d235 100644 --- a/src/backends/flatpak.rs +++ b/src/backends/flatpak.rs @@ -90,7 +90,6 @@ impl Backend for Flatpak { .filter(|(runtime, _)| { sys_explicit_runtimes_installed .lines() - .skip(1) .map(|x| x.trim()) .contains(&runtime.as_str()) }); @@ -119,7 +118,6 @@ impl Backend for Flatpak { .filter(|(runtime, _)| { user_explicit_runtimes_installed .lines() - .skip(1) .map(|x| x.trim()) .contains(&runtime.as_str()) });