From 3d6e46db28898ae3a740ed446556f2b2ac2937be Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Mon, 25 May 2020 13:59:34 -0700 Subject: [PATCH] Make desktop_login wait a bit before trying to launch stuff We're trying to launch stuff the instant we see a desktop, and it seems to be failing quite often in GNOME. Let's give it a few seconds. Signed-off-by: Adam Williamson --- tests/desktop_login.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/desktop_login.pm b/tests/desktop_login.pm index 2a5ef3f0..2921bf40 100644 --- a/tests/desktop_login.pm +++ b/tests/desktop_login.pm @@ -243,6 +243,8 @@ sub run { # Log in with the first user account. login_user(user=>"jack", password=>$jackpass); + # give it a few seconds to settle before we launch stuff + wait_still_screen 5; # Because some of the desktop candiness is based on semi-transparent items that change colours # with every background change, we want to get rid of the background and make it a solid color. solidify_wallpaper; @@ -259,6 +261,8 @@ sub run { # If not, we are in KDE and we will log in normally. login_user(user=>"jim", password=>$jimpass); } + # give it a few seconds to settle before we launch stuff + wait_still_screen 5; # The backgrounds must be solid for both newly created users to take effect in the login session. solidify_wallpaper; check_user_logged_in("jim");