Browse Source

remove handling of X11BROWSER and CONSOLEBROWSER, obsolete

master
Sandro Tosi 6 years ago
parent
commit
56c6cb11a3
  1. 4
      debian/changelog
  2. 11
      reportbug/urlutils.py

4
debian/changelog

@ -31,8 +31,10 @@ reportbug (6.6.6) UNRELEASED; urgency=medium
- switch from gtkspell (now removed) to gtkspellcheck; Closes: #802387
* man/querybts.1
- remove reference to BROWSER env variable, we use xdg-open; Closes: #690759
* reportbug/urlutils.py
- remove handling of X11BROWSER and CONSOLEBROWSER, obsolete
-- Sandro Tosi <morph@debian.org> Fri, 01 Jan 2016 14:46:50 +0000
-- Sandro Tosi <morph@debian.org> Fri, 01 Jan 2016 14:52:18 +0000
reportbug (6.6.5) unstable; urgency=medium

11
reportbug/urlutils.py

@ -177,14 +177,3 @@ def launch_browser(url):
if webbrowser:
webbrowser.open(url)
return
X11BROWSER = os.environ.get('X11BROWSER', 'mozilla-firefox')
CONSOLEBROWSER = os.environ.get('CONSOLEBROWSER', 'lynx')
if ('DISPLAY' in os.environ and
not os.system('command -v ' + X11BROWSER + ' &> /dev/null')):
cmd = "%s %s &" % (X11BROWSER, commands.mkarg(url))
else:
cmd = "%s %s" % (CONSOLEBROWSER, commands.mkarg(url))
os.system(cmd)

Loading…
Cancel
Save