From 51fa39ff37fd9743a31dd85e14c2fce9cd1edb4e Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Thu, 21 Feb 2002 16:38:09 +0000 Subject: when not in X and needs su, use consolehelper now --- perl-install/interactive.pm | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'perl-install/interactive.pm') diff --git a/perl-install/interactive.pm b/perl-install/interactive.pm index b0b313073..b22e703a9 100644 --- a/perl-install/interactive.pm +++ b/perl-install/interactive.pm @@ -95,6 +95,10 @@ sub vnew { if ($icon && $icon ne 'default' && !$::isWizard) { $o->{icon} = $icon } else { undef $o->{icon} } return $o; } + } else { + if ($su && $>) { + exec {'consolehelper'} $0, @ARGV or die _("consolehelper missing"); + } } if ($su && $>) { -- cgit v1.2.1