Skip to content

Commit

Permalink
Added patch to support cli arguments on webbrowser configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
satanas committed Jun 21, 2012
1 parent 1495c36 commit 5669792
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion turpial/ui/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,10 @@ def open_url(self, url):
'''Open a URL in the configured web browser'''
browser = self.core.get_default_browser()
if browser != '':
cmd = browser.split(' ')
cmd.append(url)
self.log.debug('Opening URL %s with %s' % (url, browser))
subprocess.Popen([browser, url])
subprocess.Popen(cmd)
else:
#if not url.startswith('http'):
# url = 'http://' + url
Expand Down

0 comments on commit 5669792

Please sign in to comment.