From 3c0d69e6441518785a992668ecd86b10e710923f Mon Sep 17 00:00:00 2001 From: icenine451 Date: Fri, 28 Jun 2024 16:03:36 -0400 Subject: [PATCH] Add rd_zenity function to keep Gtk-related errors out of the terminal --- functions/other_functions.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/functions/other_functions.sh b/functions/other_functions.sh index bc4bd8b0..01d575b4 100644 --- a/functions/other_functions.sh +++ b/functions/other_functions.sh @@ -285,6 +285,11 @@ dir_prep() { log i "$symlink is now $real" } +rd_zenity() { + # This function replaces the standard 'zenity' command and filters out annoying GTK errors on Steam Deck + zenity 2> >(grep -v 'Gtk' >&2) "$@" +} + update_rpcs3_firmware() { create_dir "$roms_folder/ps3/tmp" chmod 777 "$roms_folder/ps3/tmp"