summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone
diff options
context:
space:
mode:
authorDaouda Lo <daouda@mandriva.com>2003-01-16 15:14:29 +0000
committerDaouda Lo <daouda@mandriva.com>2003-01-16 15:14:29 +0000
commitbeb18298c08a8a6b0d65094b7683cafb21d9e240 (patch)
tree42a319ebd039f4acf8f7a86d3bc63dfbf53b8e85 /perl-install/standalone
parent99551740f3149cd25b66dd1fbeb837b4072769d4 (diff)
downloaddrakx-backup-do-not-use-beb18298c08a8a6b0d65094b7683cafb21d9e240.tar
drakx-backup-do-not-use-beb18298c08a8a6b0d65094b7683cafb21d9e240.tar.gz
drakx-backup-do-not-use-beb18298c08a8a6b0d65094b7683cafb21d9e240.tar.bz2
drakx-backup-do-not-use-beb18298c08a8a6b0d65094b7683cafb21d9e240.tar.xz
drakx-backup-do-not-use-beb18298c08a8a6b0d65094b7683cafb21d9e240.zip
- warn if documentation is not installed
Diffstat (limited to 'perl-install/standalone')
-rw-r--r--perl-install/standalone/drakhelp6
1 files changed, 5 insertions, 1 deletions
diff --git a/perl-install/standalone/drakhelp b/perl-install/standalone/drakhelp
index 265ecc83e..9d069ada8 100644
--- a/perl-install/standalone/drakhelp
+++ b/perl-install/standalone/drakhelp
@@ -9,10 +9,14 @@ use common;
use lang;
use any;
+my $in = interactive->vnew;
+
my $lang = lang::lang2LANG(lang::read('',$>)) || 'en';
if (!member($lang, qw(de en es fr it ru))) { $lang = 'en' };
my $path_to_help = "/usr/share/doc/mandrake/" . $lang . "/";
+-d $path_to_help or $in->ask_warn('drakhelp', N("Documentation not available. \n Please install package mandrake_doc-%s \n",$lang));
+
if ((my $wm = any::running_window_manager()) eq 'kwin') {
system("mdklaunchhelp " . $path_to_help . $ARGV[0] . "&");
} else {
@@ -21,7 +25,7 @@ if ((my $wm = any::running_window_manager()) eq 'kwin') {
sub on_request_help {
my ($link) = @_;
- my $browser = $ENV{BROWSER} || find { -x "/usr/bin/$_" } qw(mozilla konqueror galeon) or return;
+ 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"));
standalone::explanations("Connection to help system at $link");
system("$browser $link &");
}