Skip to content
Snippets Groups Projects
Commit 1dd6ee03 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

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

parent 8fccef98
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment