[libdevel-ptkdb-perl] 01/02: added patch to fix call to browser

dod at debian.org dod at debian.org
Sun Oct 13 09:26:40 UTC 2013


This is an automated email from the git hooks/post-receive script.

dod pushed a commit to branch master
in repository libdevel-ptkdb-perl.

commit cb788b0db246f7a83b5d174a14804e282b6f3253
Author: Dominique Dumont <dod at debian.org>
Date:   Sun Oct 13 11:07:27 2013 +0200

    added patch to fix call to browser
---
 debian/patches/call-x-www-browser |   24 ++++++++++++++++++++++++
 debian/patches/series             |    1 +
 2 files changed, 25 insertions(+)

diff --git a/debian/patches/call-x-www-browser b/debian/patches/call-x-www-browser
new file mode 100644
index 0000000..a72f81a
--- /dev/null
+++ b/debian/patches/call-x-www-browser
@@ -0,0 +1,24 @@
+Description:Help calls x-www-browser  instead of netscape
+ Call x-www-browser when clicking help. This fix may be Debian specific.
+Author:dod
+--- a/ptkdb.pm
++++ b/ptkdb.pm
+@@ -175,17 +175,7 @@
+ 			# Executing "start http://domain.com" it will start the default browser.
+ 			system(qq!start "ptkdb url title" "$url"!);
+ 		} else {
+-			my (@browsers) = qw/netscape mozilla/ ;
+-			my ($fh, $pid, $sh);
+-			$sh = 'sh' ;
+-			$fh = new FileHandle() ;
+-
+-			for (@browsers) {
+-				$pid = open($fh, qq!$sh $_ "$URLS{ $context }" 2&> /dev/null |!) ;
+-				sleep(2);
+-				waitpid $pid, 0 ;
+-				return if ($? == 0) ;
+-				}
++			system ( 'x-www-browser', $url );
+ 		}
+ 	} else {
+ 		warn "Unknown Context '$context'.";
diff --git a/debian/patches/series b/debian/patches/series
index a8c1493..cfb897f 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
+call-x-www-browser
 fix-test
 spelling.patch
 fix-pod-error

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libdevel-ptkdb-perl.git



More information about the Pkg-perl-cvs-commits mailing list