From 6e5eebffaffe3021a342fa0de12140073c8b4592 Mon Sep 17 00:00:00 2001 From: Daouda Lo Date: Wed, 3 Sep 2003 06:30:28 +0000 Subject: - change to handle documentaion system other than drakxtools one (for instance MandrakeGalaxy) --- perl-install/standalone/drakhelp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'perl-install/standalone/drakhelp') diff --git a/perl-install/standalone/drakhelp b/perl-install/standalone/drakhelp index a7a0088da..3876ccaea 100644 --- a/perl-install/standalone/drakhelp +++ b/perl-install/standalone/drakhelp @@ -21,16 +21,17 @@ This is free software and may be redistributed under the terms of the GNU GPL. Usage: ") . N(" --help - display this help ") . N(" --id - load the html help page which refers to id_label +") . N(" --doc - link to another web page ( for WM welcome frontend) "); exit(0) } my ($opt, $idlabel) = @ARGV; -@ARGV == 2 && ($opt eq '--id' || $opt eq '--help') or usage(); +@ARGV == 2 && ($opt eq '--id' || $opt eq '--doc' || $opt eq '--help') or usage(); my $in = interactive->vnew; -my ($lg, $instpath, $ancpath) = ctxhelp::path2help($idlabel); +my ($lg, $instpath, $ancpath, $package) = ctxhelp::path2help($opt, $idlabel); --e $instpath or $in->do_pkgs->install('mandrake_doc-drakxtools-' . $lg); +-e $instpath or system("/usr/sbin/drakhelp_inst $package"); -e $instpath or $in->ask_warn('Mandrake Help Center', N("%s cannot be displayed \n. No Help entry of this type\n", $instpath)); my $wm = any::running_window_manager(); @@ -40,9 +41,7 @@ my %launchhelp = ( 'other' => sub { my $browser = $ENV{BROWSER} || find { -x "/usr/bin/$_" } qw(mozilla konqueror galeon) or $in->ask_warn('drakhelp', N("No browser is installed on your system, Please install one if you want to browse the help system")); log::explanations("Loading help system : $ancpath"); system("$browser " . $ancpath . "&") - } + } ); member($wm, 'kwin', 'gnome-session') or $wm = 'other'; -e $instpath and eval { $launchhelp{$wm}->() }; - - -- cgit v1.2.1