From 471dbde330e060b2df74853c07f60d6fe5f0f65b Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Thu, 28 Aug 2003 16:37:14 +0000 Subject: if there is only one users and meta_class is discovery, choose autologin without asking --- perl-install/any.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/perl-install/any.pm b/perl-install/any.pm index da0f3eaca..5f79fbb50 100644 --- a/perl-install/any.pm +++ b/perl-install/any.pm @@ -620,7 +620,10 @@ sub autologin { my @wm = split(' ', run_program::rooted_get_stdout($::prefix, '/usr/sbin/chksession', '-l')); my @users = map { $_->{name} } @{$o->{users} || []}; - if (@wm > 1 && @users && !$o->{authentication}{NIS} && $o->{security} <= 2) { + if (member('KDE', @wm) && @users == 1 && $o->{meta_class} eq 'discovery') { + $o->{desktop} = 'KDE'; + $o->{autologin} = $users[0]; + } elsif (@wm > 1 && @users && !$o->{authentication}{NIS} && $o->{security} <= 2) { my $use_autologin = @users == 1; $in->ask_from_( -- cgit v1.2.1