summaryrefslogtreecommitdiffstats
path: root/perl-install/any.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/any.pm')
-rw-r--r--perl-install/any.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/perl-install/any.pm b/perl-install/any.pm
index f334bf700..dcf028853 100644
--- a/perl-install/any.pm
+++ b/perl-install/any.pm
@@ -923,6 +923,12 @@ sub set_autologin {
AutomaticLoginEnable => $do_autologin,
AutomaticLogin => $autologin->{user},
)) } if -e $gdm_conffile;
+ if ($autologin->{user}) {
+ $gdm_conffile = "$::prefix/var/lib/AccountsService/users/" . $autologin->{user};
+ eval { update_gnomekderc($gdm_conffile, User => (
+ Session => get_session_file($autologin->{desktop}),
+ )) };
+ }
#- Configure LIGHTDM
my $lightdm_conffile = "$::prefix/etc/lightdm/lightdm.conf.d/50-mageia-autologin.conf";