From 64e6d80d73aded869224476eb2639b00a021153c Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Wed, 29 Jan 2003 14:06:40 +0000 Subject: reuse new consolided code from MDK::Common --- menus_launcher.pl | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'menus_launcher.pl') 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 &\"") }); -- cgit v1.2.1