summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorMartin Whitaker <mageia@martin-whitaker.me.uk>2025-12-27 11:15:35 +0000
committerMartin Whitaker <mageia@martin-whitaker.me.uk>2025-12-27 11:44:11 +0000
commitbd85a399217151bfedd93a279bfc02fbf3959ec8 (patch)
treeeeb20b03725809176912e6ac6d30a0ad4b887f95 /perl-install
parent1542be849770dcd1644804f2b2a682fe3e0530b7 (diff)
downloaddrakx-bd85a399217151bfedd93a279bfc02fbf3959ec8.tar
drakx-bd85a399217151bfedd93a279bfc02fbf3959ec8.tar.gz
drakx-bd85a399217151bfedd93a279bfc02fbf3959ec8.tar.bz2
drakx-bd85a399217151bfedd93a279bfc02fbf3959ec8.tar.xz
drakx-bd85a399217151bfedd93a279bfc02fbf3959ec8.zip
Set default session for SDDM on first boot (mga#34836)
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/any.pm9
-rw-r--r--perl-install/install/NEWS1
2 files changed, 10 insertions, 0 deletions
diff --git a/perl-install/any.pm b/perl-install/any.pm
index 871aca09a..723868e6e 100644
--- a/perl-install/any.pm
+++ b/perl-install/any.pm
@@ -924,6 +924,15 @@ sub set_autologin {
Session => "$session_basename.desktop",
User => $autologin->{user},
)) } if -e $sddm_conffile;
+ if ($::isInstall && $session_basename) {
+ #- This function is called by the installer even if autologin has not
+ #- been requested. Do this to select the default session on first boot.
+ $sddm_conffile = "$::prefix/var/lib/sddm/state.conf";
+ my $session_dir = $session_files{$autologin->{desktop}}->{dir};
+ eval { common::update_gnomekderc($sddm_conffile, 'Last' => (
+ Session => "$session_dir/$session_basename.desktop",
+ )) };
+ }
#- Configure GDM
my $gdm_conffile = "$::prefix/etc/X11/gdm/custom.conf";
diff --git a/perl-install/install/NEWS b/perl-install/install/NEWS
index 42da08be1..352e0065a 100644
--- a/perl-install/install/NEWS
+++ b/perl-install/install/NEWS
@@ -1,3 +1,4 @@
+- set default session for SDDM on first boot (mga#34836)
- make IceWM the last choice when picking the default session for first boot (mga#34836)
Version 18.70 - 29 November 2025