diff options
Diffstat (limited to 'perl-install/standalone/drakhelp')
| -rwxr-xr-x | perl-install/standalone/drakhelp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/perl-install/standalone/drakhelp b/perl-install/standalone/drakhelp index 2e77168a0..c2b46979a 100755 --- a/perl-install/standalone/drakhelp +++ b/perl-install/standalone/drakhelp @@ -9,7 +9,7 @@ use standalone; #- warning, standalone must be loaded very first, for 'expla use interactive; use common; use any; -use ctxhelp; +eval { require ctxhelp }; use log; @@ -27,18 +27,18 @@ Usage: exit(0); } my ($opt, $idlabel) = @ARGV; -@ARGV == 2 && ($opt eq '--id' || $opt eq '--doc' || $opt eq '--help') or usage(); +@ARGV == 2 && member($opt, qw(--id --doc --help)) or usage(); -my ($instpath, $ancpath, $package) = ctxhelp::path2help($opt, $idlabel); +my ($instpath, $ancpath, $package) = eval { ctxhelp::path2help($opt, $idlabel) }; if (! -e $instpath) { system('/usr/sbin/drakhelp_inst', $package); } if (! -e $instpath) { #- trying again, asking for the english entry - ($instpath, $ancpath, my $package2) = ctxhelp::path2help($opt, $idlabel, 'en'); + ($instpath, $ancpath, my $package2) = eval { ctxhelp::path2help($opt, $idlabel, 'en') }; if (! -e $instpath && $package ne $package2) { system("/usr/sbin/drakhelp_inst $package2"); } @@ -48,7 +48,7 @@ if (-f $instpath) { local $ENV{HOME} = '/root' if !$<; run_program::raw({ detach => 1 }, 'display_help', "file://$ancpath"); } else { - $ugtk2::wm_icon = "help"; + $ugtk3::wm_icon = "help"; my $in = interactive->vnew; - $in->ask_warn(N("%s Help Center"), N("No Help entry for %s\n", $idlabel)); + $in->ask_warn(N("%s Help Center", N("Mageia")), N("No Help entry for %s\n", $idlabel)); } |
