From f4b154253c510187d889e97031f5ffaa05fa3949 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Tue, 7 Feb 2023 11:43:16 -0800 Subject: [PATCH] desktop_login: don't hit esc on lock screen Tested that this is not necessary on KDE or GNOME, and on current KDE it actually seems to break stuff. It's better to just start typing the password. Signed-off-by: Adam Williamson --- tests/desktop_login.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/desktop_login.pm b/tests/desktop_login.pm index 5275b5f4..a047f2a6 100644 --- a/tests/desktop_login.pm +++ b/tests/desktop_login.pm @@ -61,7 +61,7 @@ sub login_user { my $user = $args{user}; my $password = $args{password}; my $method = $args{method}; - if (!check_screen "login_$user") { + if ($method ne "unlock" && !check_screen "login_$user") { # Sometimes, especially in SDDM, we do not get the user list # but rather a "screensaver" screen for the DM. If this is the # case, hit Escape to bring back the user list.