From a7e277c216138a802406a2788b60624f19231e13 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Fri, 30 Sep 2005 15:08:16 +0000 Subject: cleanup --- perl-install/standalone/drakhelp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'perl-install/standalone/drakhelp') diff --git a/perl-install/standalone/drakhelp b/perl-install/standalone/drakhelp index 6459e8cff..16a39f32a 100644 --- a/perl-install/standalone/drakhelp +++ b/perl-install/standalone/drakhelp @@ -28,11 +28,14 @@ Usage: my ($opt, $idlabel) = @ARGV; @ARGV == 2 && ($opt eq '--id' || $opt eq '--doc' || $opt eq '--help') or usage(); -$ugtk2::wm_icon = "help"; -my $in = interactive->vnew; my ($instpath, $ancpath, $package) = ctxhelp::path2help($opt, $idlabel); -e $instpath or system("/usr/sbin/drakhelp_inst $package"); --e $instpath or $in->ask_warn(N("Mandriva Linux Help Center"), N("%s cannot be displayed \n. No Help entry of this type\n", $instpath)); -system("/usr/bin/www-browser file://$ancpath &") if -e $instpath; +if (-e $instpath) { + system("/usr/bin/www-browser file://$ancpath &"); +} else { + $ugtk2::wm_icon = "help"; + my $in = interactive->vnew; + $in->ask_warn(N("Mandriva Linux Help Center"), N("%s cannot be displayed \n. No Help entry of this type\n", $instpath)); +} -- cgit v1.2.1