summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorMartin Whitaker <mageia@martin-whitaker.me.uk>2025-12-26 19:44:12 +0000
committerMartin Whitaker <mageia@martin-whitaker.me.uk>2025-12-26 19:56:44 +0000
commit07290675d392c2dc34de4cf1aa795501278b4c12 (patch)
tree560229d67d7bd808b6de015ea6073e5e1925488d /perl-install
parent01746578e0a60047bf7c92d91636e2de65a7161a (diff)
downloaddrakx-07290675d392c2dc34de4cf1aa795501278b4c12.tar
drakx-07290675d392c2dc34de4cf1aa795501278b4c12.tar.gz
drakx-07290675d392c2dc34de4cf1aa795501278b4c12.tar.bz2
drakx-07290675d392c2dc34de4cf1aa795501278b4c12.tar.xz
drakx-07290675d392c2dc34de4cf1aa795501278b4c12.zip
Fix autologin session selection for GDM.
GDM now reads the session setting from /var/lib/AcoountsService/users/<name>, so we need to create/update that file.
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/NEWS2
-rw-r--r--perl-install/any.pm6
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";