summaryrefslogtreecommitdiffstats
path: root/perl-install/any.pm
diff options
context:
space:
mode:
authorMartin Whitaker <mageia@martin-whitaker.me.uk>2025-12-27 11:12:39 +0000
committerMartin Whitaker <mageia@martin-whitaker.me.uk>2025-12-27 11:41:36 +0000
commit1542be849770dcd1644804f2b2a682fe3e0530b7 (patch)
tree3268d363287eebe585612c22c5a63d144a003879 /perl-install/any.pm
parente0ef94e95661682bec375632c55dbebfd4f0a24f (diff)
downloaddrakx-1542be849770dcd1644804f2b2a682fe3e0530b7.tar
drakx-1542be849770dcd1644804f2b2a682fe3e0530b7.tar.gz
drakx-1542be849770dcd1644804f2b2a682fe3e0530b7.tar.bz2
drakx-1542be849770dcd1644804f2b2a682fe3e0530b7.tar.xz
drakx-1542be849770dcd1644804f2b2a682fe3e0530b7.zip
Make IceWM the last choice when picking the default session for first boot (mga#34836)
IceWM is automatically installed as a fallback DE. So we want to default to one of the DEs the user actually chose.
Diffstat (limited to 'perl-install/any.pm')
-rw-r--r--perl-install/any.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/perl-install/any.pm b/perl-install/any.pm
index 9b47bcf56..871aca09a 100644
--- a/perl-install/any.pm
+++ b/perl-install/any.pm
@@ -866,7 +866,10 @@ sub get_autologin() {
my $lightdm_conffile = "$::prefix/etc/lightdm/lightdm.conf.d/50-mageia-autologin.conf";
my $lxdm_conffile = "$::prefix/etc/lxdm/lxdm.conf";
my $autologin_file = "$::prefix/etc/sysconfig/autologin";
- my $desktop = $desktop{DESKTOP} || first(session_names());
+ my @session_names = session_names() if ! $desktop{DESKTOP};
+ my $desktop = $desktop{DESKTOP} ||
+ first(grep { $_ !~ /icewm/i } @session_names) ||
+ first(grep { $_ =~ /icewm/i } @session_names);
my $dm =
basename(readlink("$::prefix/etc/systemd/system/display-manager.service")) =~ s/(.*)\.service/$1/r ||
desktop_to_dm($desktop) ||