From cdeeffc2316a8a814e31938487798c8bb7e874e9 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Thu, 2 Oct 2008 16:38:29 +0000 Subject: find default desktop choice according to compssUsers.pl (useful for netbook/nettop systems) --- perl-install/install/steps_interactive.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perl-install/install/steps_interactive.pm') diff --git a/perl-install/install/steps_interactive.pm b/perl-install/install/steps_interactive.pm index ea71bb81f..cf3bfacc8 100644 --- a/perl-install/install/steps_interactive.pm +++ b/perl-install/install/steps_interactive.pm @@ -494,7 +494,7 @@ sub _chooseDesktop { my $title = N("Desktop Selection"); my $message = N("You can choose your workstation desktop profile."); - my $default_choice = $choices->[0]; + my $default_choice = (find { $rpmsrate_flags_chosen->{"CAT_" . $_->[0]} } @l) || $l[0]; my $choice = $default_choice; if ($o->isa('interactive::gtk')) { $choice = install::steps_gtk::reallyChooseDesktop($o, $title, $message, \@l, $default_choice); -- cgit v1.2.1