1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-12-22 10:23:09 +00:00

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 <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2021-02-18 12:15:06 -08:00
parent 81d6db802f
commit b0ce5cc2cd

View File

@ -43,6 +43,7 @@ sub adduser {
# inside Gnome. # inside Gnome.
if ($desktop eq "gnome") { if ($desktop eq "gnome") {
assert_script_run "mkdir /home/$login/.config"; 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 "echo 'yes' >> /home/$login/.config/gnome-initial-setup-done";
assert_script_run "chown -R $login.$login /home/$login/.config"; assert_script_run "chown -R $login.$login /home/$login/.config";
assert_script_run "restorecon -vr /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); adduser(name=>"Jack Sparrow", login=>"jack", password=>$jackpass);
if ($desktop eq "gnome") { 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 # 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 # the first login. So we can create the second user in this way to test this feature
# later. # later.