summaryrefslogtreecommitdiffstats
path: root/perl-install/any.pm
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/any.pm
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/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";