summaryrefslogtreecommitdiff
path: root/net-print/hplip/files/hplip-3.9.10-browser.patch
diff options
context:
space:
mode:
Diffstat (limited to 'net-print/hplip/files/hplip-3.9.10-browser.patch')
-rw-r--r--net-print/hplip/files/hplip-3.9.10-browser.patch38
1 files changed, 0 insertions, 38 deletions
diff --git a/net-print/hplip/files/hplip-3.9.10-browser.patch b/net-print/hplip/files/hplip-3.9.10-browser.patch
deleted file mode 100644
index 46c4f634..00000000
--- a/net-print/hplip/files/hplip-3.9.10-browser.patch
+++ /dev/null
@@ -1,38 +0,0 @@
---- base/utils.py.old 2009-11-14 15:23:29.000000000 +0100
-+++ base/utils.py 2009-11-14 15:37:53.000000000 +0100
-@@ -812,13 +812,15 @@
- return True
-
-
--BROWSERS = ['firefox', 'mozilla', 'konqueror', 'galeon', 'skipstone'] # in preferred order
--BROWSER_OPTS = {'firefox': '-new-window', 'mozilla' : '', 'konqueror': '', 'galeon': '-w', 'skipstone': ''}
-+BROWSERS = ['firefox', 'mozilla', 'konqueror', 'epiphany', 'skipstone'] # in preferred order
-+BROWSER_OPTS = {'firefox': '-new-tab', 'mozilla': '', 'konqueror': '', 'epiphany': '--new-tab', 'skipstone': ''}
-
-
- def find_browser():
- if platform_avail and platform.system() == 'Darwin':
- return "open"
-+ if platform_avail and platform.system() == 'Linux' and which("xdg-open"):
-+ return "xdg-open"
- else:
- for b in BROWSERS:
- if which(b):
-@@ -832,11 +834,14 @@
- cmd = 'open "%s"' % url
- log.debug(cmd)
- os.system(cmd)
-+ if platform_avail and platform.system() == 'Linux' and which("xdg-open"):
-+ cmd = 'xdg-open "%s"' % url
-+ log.debug(cmd)
-+ os.system(cmd)
- else:
- for b in BROWSERS:
-- bb = which(b)
-- if bb:
-- bb = os.path.join(bb, b)
-+ if b:
-+ bb = which(b, return_full_path='True')
- if use_browser_opts:
- cmd = """%s %s "%s" &""" % (bb, BROWSER_OPTS[b], url)
- else: