summaryrefslogtreecommitdiffstats
path: root/perl-install/any.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/any.pm')
-rw-r--r--perl-install/any.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/perl-install/any.pm b/perl-install/any.pm
index 40cf6e275..fb858967e 100644
--- a/perl-install/any.pm
+++ b/perl-install/any.pm
@@ -703,6 +703,7 @@ sub ask_users {
my $u if 0; $u ||= {};
my @shells = map { chomp; $_ } cat_("$prefix/etc/shells");
+ my @icons = facesnames($prefix);
while (1) {
$u->{password2} ||= $u->{password} ||= '';
@@ -736,8 +737,8 @@ sub ask_users {
{ label => _("Password"),val => \$u->{password}, hidden => 1 },
{ label => _("Password (again)"), val => \$u->{password2}, hidden => 1 },
{ label => _("Shell"), val => \$u->{shell}, list => [ shells($prefix) ], not_edit => !$::expert, advanced => 1 },
- if_($security <= 3,
- { label => _("Icon"), val => \$u->{icon}, list => [ '', facesnames($prefix) ], icon2f => sub { face2png($_[0], $prefix) }, format => \&translate },
+ if_($security <= 3 && @icons,
+ { label => _("Icon"), val => \$u->{icon}, list => \@icons, icon2f => sub { face2png($_[0], $prefix) }, format => \&translate },
),
],
);