diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2005-09-30 15:08:16 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2005-09-30 15:08:16 +0000 |
commit | a7e277c216138a802406a2788b60624f19231e13 (patch) | |
tree | 9c5db22bba9ccd9230c755512cb5512d3346b7e9 | |
parent | 221b4b7457458066022ecc48eb0482a169927207 (diff) | |
download | drakx-a7e277c216138a802406a2788b60624f19231e13.tar drakx-a7e277c216138a802406a2788b60624f19231e13.tar.gz drakx-a7e277c216138a802406a2788b60624f19231e13.tar.bz2 drakx-a7e277c216138a802406a2788b60624f19231e13.tar.xz drakx-a7e277c216138a802406a2788b60624f19231e13.zip |
cleanup
-rw-r--r-- | perl-install/standalone/drakhelp | 11 |
1 files changed, 7 insertions, 4 deletions
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)); +} |