Program error when clicking on a link: Browser not properly detected
When I click on a link anywhere in the gajim interface, I get a "programming error" with the following stacktrace:
Traceback (most recent call last):
File "/usr/share/gajim/src/htmltextview.py", line 1014, in _hyperlink_handler
self.hyperlink_handler(texttag, widget, event, iter_, kind)
File "/usr/share/gajim/src/conversation_textview.py", line 1014, in hyperlink_handler
helpers.launch_browser_mailer(kind, word)
File "/usr/share/gajim/src/common/helpers.py", line 720, in launch_browser_mailer
webbrowser.open(uri)
File "/usr/lib/python2.7/webbrowser.py", line 61, in open
if browser.open(url, new, autoraise):
File "/usr/lib/python2.7/webbrowser.py", line 275, in open
success = self._invoke(args, True, autoraise)
File "/usr/lib/python2.7/webbrowser.py", line 238, in _invoke
stderr=inout, preexec_fn=setsid)
File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1335, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
Clicking the "Report Bug" button in that window triggers the same error ;-)
Probably this is because "custombrowser" (in the "Advanced Configuration Editor") is set to "firefox", which is not installed on my machine. I reset that to its default and it stayed that way, so I guess that's not my fault. I do have the default browser set up properly (some XDG stuff, as far as I know), and both sensible-browser and x-www-browser correctly launch iceweasel (the Debian Firefox). It should really not be hard to auto-detect a browser on my system, and pretty much all the other programs manage to do so.