Add rd_zenity function to keep Gtk-related errors out of the terminal

This commit is contained in:
icenine451 2024-06-28 16:03:36 -04:00
parent aa7ac1058f
commit 3c0d69e644

View file

@ -285,6 +285,11 @@ dir_prep() {
log i "$symlink is now $real" 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() { update_rpcs3_firmware() {
create_dir "$roms_folder/ps3/tmp" create_dir "$roms_folder/ps3/tmp"
chmod 777 "$roms_folder/ps3/tmp" chmod 777 "$roms_folder/ps3/tmp"