diff options
| author | Martin Whitaker <mageia@martin-whitaker.me.uk> | 2025-12-26 19:44:12 +0000 |
|---|---|---|
| committer | Martin Whitaker <mageia@martin-whitaker.me.uk> | 2025-12-26 19:56:44 +0000 |
| commit | 07290675d392c2dc34de4cf1aa795501278b4c12 (patch) | |
| tree | 560229d67d7bd808b6de015ea6073e5e1925488d /perl-install/any.pm | |
| parent | 01746578e0a60047bf7c92d91636e2de65a7161a (diff) | |
| download | drakx-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.pm | 6 |
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"; |
