From b0ce5cc2cd702cd0942e7fe9acd5600167bed7b8 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Thu, 18 Feb 2021 12:15:06 -0800 Subject: [PATCH] Suppress Welcome Tour for new users in desktop_login We get Welcome Tour now, not gnome-initial-setup new user mode, and it doesn't respect the dotfile g-i-s respected. Signed-off-by: Adam Williamson --- tests/desktop_login.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/desktop_login.pm b/tests/desktop_login.pm index 9a4707a9..0f91671e 100644 --- a/tests/desktop_login.pm +++ b/tests/desktop_login.pm @@ -43,6 +43,7 @@ sub adduser { # inside Gnome. if ($desktop eq "gnome") { assert_script_run "mkdir /home/$login/.config"; + # gnome-initial-setup-done is obsolete from F34 onwards, can be removed after F33 EOL assert_script_run "echo 'yes' >> /home/$login/.config/gnome-initial-setup-done"; assert_script_run "chown -R $login.$login /home/$login/.config"; assert_script_run "restorecon -vr /home/$login/.config"; @@ -205,6 +206,8 @@ sub run { } adduser(name=>"Jack Sparrow", login=>"jack", password=>$jackpass); if ($desktop eq "gnome") { + # suppress the Welcome Tour for new users in GNOME 40+ + assert_script_run 'echo "welcome-dialog-last-shown-version=\'4294967295\'" > /usr/share/glib-2.0/schemas/org.gnome.shell.gschema.override'; # In Gnome, we can create a passwordless user that can provide his password upon # the first login. So we can create the second user in this way to test this feature # later.