summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/drakhelp
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/standalone/drakhelp')
-rw-r--r--perl-install/standalone/drakhelp11
1 files changed, 6 insertions, 5 deletions
diff --git a/perl-install/standalone/drakhelp b/perl-install/standalone/drakhelp
index b6040a291..d76ce8939 100644
--- a/perl-install/standalone/drakhelp
+++ b/perl-install/standalone/drakhelp
@@ -13,7 +13,7 @@ use ctxhelp;
use log;
-sub usage {
+sub usage() {
print STDERR N(" drakhelp 0.1
Copyright (C) 2003-2004 Mandrakesoft.
This is free software and may be redistributed under the terms of the GNU GPL.
@@ -28,17 +28,18 @@ 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 ($lg, $instpath, $ancpath, $package) = ctxhelp::path2help($opt, $idlabel);
+my ($instpath, $ancpath, $package) = ctxhelp::path2help($opt, $idlabel);
-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));
+-e $instpath or $in->ask_warn(N("Mandrakelinux Help Center"), N("%s cannot be displayed \n. No Help entry of this type\n", $instpath));
my $wm = any::running_window_manager();
my %launchhelp = (
- 'kwin' => sub { system("konqueror " . $ancpath . "&") },
+ 'kwin' => sub { system("webclient-kde " . $ancpath . "&") },
'gnome-session' => sub { system("yelp ghelp://" . $ancpath . "&") },
- '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"));
+ 'other' => sub { my $browser = $ENV{BROWSER} || find { -x "/usr/bin/$_" } qw(mozilla konqueror epiphany 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 . "&")
}