[Reportbug-commits] [SCM] Reportbug - reports bugs in the Debian distribution branch, master, updated. 4.5-28-g57788e9

Sandro Tosi morph at debian.org
Tue Aug 11 21:56:08 UTC 2009


The following commit has been merged in the master branch:
commit 57788e94bb4d70f79f0bb66d764a562545b40675
Author: Sandro Tosi <morph at debian.org>
Date:   Tue Aug 11 23:49:22 2009 +0200

    use xdg-open instead of sensible-browser to open URLs: it uses the selected browser in the desktop environment, else it falls back to s-b; thanks to Alexandre Fournier for the report; Closes: #536873

diff --git a/debian/changelog b/debian/changelog
index 5c6a6f7..41684cd 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -43,8 +43,12 @@ reportbug (4.6) UNRELEASED; urgency=low
     - if MUA returns an error, notify the user allowing to re-edit the mail
       (without loosing the mail); thanks to Raphaël Hertzog for the report and
       to Carl Chenet for the patch; Closes: #529251
+  * reportbug/urlutils.py
+    - use xdg-open instead of sensible-browser to open URLs: it uses the
+      selected browser in the desktop environment, else it falls back to s-b;
+      thanks to Alexandre Fournier for the report; Closes: #536873
 
- -- Sandro Tosi <morph at debian.org>  Mon, 10 Aug 2009 20:19:48 +0200
+ -- Sandro Tosi <morph at debian.org>  Tue, 11 Aug 2009 23:40:56 +0200
 
 reportbug (4.5) unstable; urgency=low
 
diff --git a/reportbug/urlutils.py b/reportbug/urlutils.py
index 70d937b..6df74d3 100644
--- a/reportbug/urlutils.py
+++ b/reportbug/urlutils.py
@@ -162,8 +162,8 @@ def open_url(url, http_proxy=None):
     return page
 
 def launch_browser(url):
-    if not os.system('command -v sensible-browser &> /dev/null'):
-        cmd = 'sensible-browser' + commands.mkarg(url)
+    if not os.system('command -v xdg-open &> /dev/null'):
+        cmd = 'xdg-open' + commands.mkarg(url)
         os.system(cmd)
         return
 

-- 
Reportbug - reports bugs in the Debian distribution



More information about the Reportbug-commits mailing list