diff options
| -rw-r--r-- | perl-install/NEWS | 2 | ||||
| -rw-r--r-- | perl-install/any.pm | 6 |
2 files changed, 8 insertions, 0 deletions
diff --git a/perl-install/NEWS b/perl-install/NEWS index 611e0fc43..7db075a70 100644 --- a/perl-install/NEWS +++ b/perl-install/NEWS @@ -1,3 +1,5 @@ +- fix autologin session selection for GDM + Version 18.70 - 29 November 2025 - use POSIX::setlocale() instead of c::setlocale() to ensure Locale::gettext 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"; |
