summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/drakhelp
diff options
context:
space:
mode:
authorDaouda Lo <daouda@mandriva.com>2003-01-16 20:38:58 +0000
committerDaouda Lo <daouda@mandriva.com>2003-01-16 20:38:58 +0000
commit341bc77db68e8b3a49b2e358a23cec79fd709f24 (patch)
treec29a70a8ee6e41b596f1bcdc316a0075a6d100e0 /perl-install/standalone/drakhelp
parentd61783311fe269e7d4816512bd070492e62c1358 (diff)
downloaddrakx-backup-do-not-use-341bc77db68e8b3a49b2e358a23cec79fd709f24.tar
drakx-backup-do-not-use-341bc77db68e8b3a49b2e358a23cec79fd709f24.tar.gz
drakx-backup-do-not-use-341bc77db68e8b3a49b2e358a23cec79fd709f24.tar.bz2
drakx-backup-do-not-use-341bc77db68e8b3a49b2e358a23cec79fd709f24.tar.xz
drakx-backup-do-not-use-341bc77db68e8b3a49b2e358a23cec79fd709f24.zip
- support gnome help
Diffstat (limited to 'perl-install/standalone/drakhelp')
-rw-r--r--perl-install/standalone/drakhelp6
1 files changed, 4 insertions, 2 deletions
diff --git a/perl-install/standalone/drakhelp b/perl-install/standalone/drakhelp
index 9d069ada8..2fd3a8e0b 100644
--- a/perl-install/standalone/drakhelp
+++ b/perl-install/standalone/drakhelp
@@ -15,11 +15,13 @@ 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));
+-d $path_to_help or $in->do_pkgs->install('mandrake_doc-' . $lang);
if ((my $wm = any::running_window_manager()) eq 'kwin') {
system("mdklaunchhelp " . $path_to_help . $ARGV[0] . "&");
-} else {
+}elsif ($wm eq 'gnome-session') {
+ system("yelp ghelp://" . $path_to_help . $ARGV[0] . "&")
+} else {
on_request_help($path_to_help . $ARGV[0])
}