From 69172d7abe17d56b68a97465344467d8c34482b6 Mon Sep 17 00:00:00 2001 From: salmonik Date: Sun, 10 May 2026 00:29:01 +0200 Subject: Fix queue display returning nothing - removed daemon pager, return full output instead. Increase pre-buffer to 100 packets. --- src/daemon.rs | 25 ++++++------------------- 1 file changed, 6 insertions(+), 19 deletions(-) (limited to 'src/daemon.rs') diff --git a/src/daemon.rs b/src/daemon.rs index 7488fc2..b79e67a 100644 --- a/src/daemon.rs +++ b/src/daemon.rs @@ -454,7 +454,10 @@ fn process_command( for file in &files { q.add_track(file.clone()); } - if was_empty && !was_playing && let Some(track) = q.current() { + if was_empty + && !was_playing + && let Some(track) = q.current() + { audio.play(track.path.clone()); notification::notify_track(track); } @@ -519,24 +522,8 @@ fn process_command( } } } - // Use pager if queue is longer than terminal height - let terminal_rows = terminal_size::terminal_size() - .map(|(w, _)| w.0 as usize) - .unwrap_or(24); - if output.lines().count() > terminal_rows { - use std::process::{Command, Stdio}; - let pager = Command::new("less").arg("-R").stdin(Stdio::piped()).spawn(); - if let Ok(mut child) = pager { - use std::io::Write; - let _ = child.stdin.as_mut().unwrap().write_all(output.as_bytes()); - let _ = child.wait(); - "".to_string() - } else { - output - } - } else { - output - } + // Always return full output - client can pipe to pager if needed + output } } else { "Error accessing queue\n".to_string() -- cgit v1.2.3