From 5ae992622574d904d568a4a39758096048c5d062 Mon Sep 17 00:00:00 2001 From: Lukas Ruzicka Date: Thu, 22 Feb 2024 15:31:14 +0100 Subject: [PATCH] Restart Fonts on Silverblue (bug) --- tests/applications/fonts/aaa_setup.pm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/applications/fonts/aaa_setup.pm b/tests/applications/fonts/aaa_setup.pm index 28478495..9297c11d 100644 --- a/tests/applications/fonts/aaa_setup.pm +++ b/tests/applications/fonts/aaa_setup.pm @@ -13,7 +13,14 @@ sub run { # Start the application menu_launch_type("fonts"); - # Check that is started + # BUG https://gitlab.gnome.org/GNOME/gnome-font-viewer/-/issues/78 + # Flatpakked Fonts (version 45.0) starts and crashes for the first time, + # therefore on Silverblue, let's check first and + # if it crashes, try to run the application again before dying. + # Check that the application is running on Silverblue + if (get_var("SUBVARIANT" eq "Silverblue") && ! (check_screen('apps_run_fonts', timeout => 30))) { + menu_launch_type("fonts"); + } assert_screen 'apps_run_fonts'; # Fullsize the window.