diff options
author | Mystery Man <unknown@mandriva.org> | 2004-06-15 16:50:22 +0000 |
---|---|---|
committer | Mystery Man <unknown@mandriva.org> | 2004-06-15 16:50:22 +0000 |
commit | 8ea9beca90c410e12593fedfb6e741dbdf8795d0 (patch) | |
tree | 544a377d0ea57462110009fbbbfd14473390e2a1 /perl-install/standalone/drakhelp | |
parent | b5dc638815c772056e07cd013f5b1674900456d5 (diff) | |
download | drakx-topic/mandrakesoft.tar drakx-topic/mandrakesoft.tar.gz drakx-topic/mandrakesoft.tar.bz2 drakx-topic/mandrakesoft.tar.xz drakx-topic/mandrakesoft.zip |
This commit was manufactured by cvs2svn to create branch 'mandrakesoft'.topic/mandrakesoft
Diffstat (limited to 'perl-install/standalone/drakhelp')
-rw-r--r-- | perl-install/standalone/drakhelp | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/perl-install/standalone/drakhelp b/perl-install/standalone/drakhelp deleted file mode 100644 index 7ff26e0a6..000000000 --- a/perl-install/standalone/drakhelp +++ /dev/null @@ -1,47 +0,0 @@ -#!/usr/bin/perl - -use strict; -use diagnostics; - -use lib qw(/usr/lib/libDrakX); -use standalone; #- warning, standalone must be loaded very first, for 'explanations' - -use interactive; -use common; -use any; -use ctxhelp; -use log; - - -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. - -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 '--doc' || $opt eq '--help') or usage(); - -my $in = interactive->vnew; -my ($lg, $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)); - -my $wm = any::running_window_manager(); -my %launchhelp = ( - 'kwin' => sub { system("konqueror " . $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")); - log::explanations("Loading help system : $ancpath"); - system("$browser " . $ancpath . "&") - } - ); -member($wm, 'kwin', 'gnome-session') or $wm = 'other'; --e $instpath and eval { $launchhelp{$wm}->() }; |