From 9bd376a5270dd76ced54c82ce8cd8f5dac949733 Mon Sep 17 00:00:00 2001 From: Lukas Ruzicka Date: Thu, 10 Aug 2023 13:58:48 +0200 Subject: [PATCH] Make a starting fix for Silverblue. --- tests/apps_startstop/gnome/fonts.pm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/apps_startstop/gnome/fonts.pm b/tests/apps_startstop/gnome/fonts.pm index 8990a7cd..384550d5 100644 --- a/tests/apps_startstop/gnome/fonts.pm +++ b/tests/apps_startstop/gnome/fonts.pm @@ -10,7 +10,13 @@ sub run { # Start the application start_with_launcher('apps_menu_fonts', 'apps_menu_utilities'); - # Check that is started + # Check that is started. + # Note: On Silverblue, the application sometimes does not + # start when attempted for the first time. If that happens, + # we will retry starting it once more. + if ((get_var("SUBVARIANT") eq "Silverblue") and (! check_screen("apps_run_fonts"))) { + menu_launch_type("fonts"); + } assert_screen 'apps_run_fonts'; # Register application register_application("gnome-font-viewer");