summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/drakhelp
diff options
context:
space:
mode:
authorDaouda Lo <daouda@mandriva.com>2003-09-03 06:30:28 +0000
committerDaouda Lo <daouda@mandriva.com>2003-09-03 06:30:28 +0000
commit6e5eebffaffe3021a342fa0de12140073c8b4592 (patch)
tree46530776a19e71754cd1b28dd67f69648185d7ad /perl-install/standalone/drakhelp
parent6020d4919108f8e14033538130f803d735233783 (diff)
downloaddrakx-6e5eebffaffe3021a342fa0de12140073c8b4592.tar
drakx-6e5eebffaffe3021a342fa0de12140073c8b4592.tar.gz
drakx-6e5eebffaffe3021a342fa0de12140073c8b4592.tar.bz2
drakx-6e5eebffaffe3021a342fa0de12140073c8b4592.tar.xz
drakx-6e5eebffaffe3021a342fa0de12140073c8b4592.zip
- change to handle documentaion system other than drakxtools one (for
instance MandrakeGalaxy)
Diffstat (limited to 'perl-install/standalone/drakhelp')
-rw-r--r--perl-install/standalone/drakhelp11
1 files changed, 5 insertions, 6 deletions
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 <id_label> - load the html help page which refers to id_label
+") . N(" --doc <link> - 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}->() };
-
-