diff --git a/src/linux_lib.rs b/src/linux_lib.rs index 1ec1593..412849e 100644 --- a/src/linux_lib.rs +++ b/src/linux_lib.rs @@ -105,7 +105,7 @@ pub fn list_outputs() -> Vec<(String, String)> { } pub fn move_output_to_sink(output_index: String, sink_index: String) { - let output = Command::new("pactl") + let _ = Command::new("pactl") .args(&["move-source-output", output_index.as_str(), sink_index.as_str()]) // as_str is needed here as you cannot instantly dereference a growing String (Rust...) .output() .expect("Failed to execute process"); diff --git a/src/main.rs b/src/main.rs index c5bfaef..2f4f4ab 100644 --- a/src/main.rs +++ b/src/main.rs @@ -574,7 +574,7 @@ fn draw(mut contexts: EguiContexts, mut app_state: ResMut) -> Result { } }); - let window_height = ctx.screen_rect().height(); + let window_height = ctx.content_rect().height(); egui::TopBottomPanel::bottom("currently_playing") .exact_height(window_height * 0.1) diff --git a/src/yt_dlp.rs b/src/yt_dlp.rs index 53680d5..ea5841b 100644 --- a/src/yt_dlp.rs +++ b/src/yt_dlp.rs @@ -43,7 +43,7 @@ pub fn check_and_download_yt_dlp() { } pub fn check_ffmpeg() -> bool{ - return std::process::Command::new("ffmpeg").spawn().is_ok(); + return std::process::Command::new("ffmpeg").output().is_ok(); } pub fn check_and_download_ffmpeg() {