From 341bc77db68e8b3a49b2e358a23cec79fd709f24 Mon Sep 17 00:00:00 2001 From: Daouda Lo Date: Thu, 16 Jan 2003 20:38:58 +0000 Subject: - support gnome help --- perl-install/standalone/drakhelp | 6 ++++-- 1 file 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]) } -- cgit v1.2.1