[Florob] add http:// to URLs before giving them to gnome-open. Fixes #4857

This commit is contained in:
Yann Leboulanger 2009-03-11 17:48:34 +00:00
parent 8fccef98c7
commit 1dd6ee0390
1 changed files with 3 additions and 1 deletions

View File

@ -726,7 +726,9 @@ def launch_browser_mailer(kind, uri):
elif gajim.config.get('openwith') == 'custom':
if kind == 'url':
command = gajim.config.get('custombrowser')
if kind in ('mail', 'sth_at_sth'):
if uri.startswith('www.'):
uri = 'http://' + uri
elif kind in ('mail', 'sth_at_sth'):
command = gajim.config.get('custommailapp')
if command == '': # if no app is configured
return