diff options
Diffstat (limited to 'menus_launcher.pl')
-rwxr-xr-x | menus_launcher.pl | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/menus_launcher.pl b/menus_launcher.pl index 7a621690..fc798eca 100755 --- a/menus_launcher.pl +++ b/menus_launcher.pl @@ -39,10 +39,7 @@ $table->attach($b1, 1, 2, 0, 1, 'fill', 'fill', 0, 0); $table->attach(Gtk2::Label->new(N("User menu")), 0, 1, 1, 2, 'fill', 'fill', 0, 0); my $combo = Gtk2::Combo->new; -$combo->set_popdown_strings("root", sort(map { - my ($username, undef, $uid) = @$_; - if_(500 < $uid && $username ne "nobody", $username); -} &list_passwd())); +$combo->set_popdown_strings("root", sort(list_users())); $table->attach($combo, 2, 3, 1, 2, 'fill', 'fill', 0, 0); my $b2 = gtksignal_connect(Gtk2::Button->new(N("Configure...")), clicked => sub { my $a = $combo->entry->get_text(); system($a eq "root" ? "$bindir/menudrake --usermenu &" : " su $a -c \"$bindir/menudrake &\"") }); |