From 7224c1253228e5c29c78cb3f0f26ce34770f2356 Mon Sep 17 00:00:00 2001 From: BlackNoxis Date: Sat, 15 Feb 2014 23:24:26 +0200 Subject: Added ebuilds for kogaion desktop --- net-print/hplip/files/hplip-3.9.10-browser.patch | 38 ++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 net-print/hplip/files/hplip-3.9.10-browser.patch (limited to 'net-print/hplip/files/hplip-3.9.10-browser.patch') diff --git a/net-print/hplip/files/hplip-3.9.10-browser.patch b/net-print/hplip/files/hplip-3.9.10-browser.patch new file mode 100644 index 00000000..46c4f634 --- /dev/null +++ b/net-print/hplip/files/hplip-3.9.10-browser.patch @@ -0,0 +1,38 @@ +--- 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: -- cgit v1.2.3