[Florob] add http:// to URLs before giving them to gnome-open. Fixes #4857
This commit is contained in:
parent
8fccef98c7
commit
1dd6ee0390
1 changed files with 3 additions and 1 deletions
|
@ -726,7 +726,9 @@ def launch_browser_mailer(kind, uri):
|
||||||
elif gajim.config.get('openwith') == 'custom':
|
elif gajim.config.get('openwith') == 'custom':
|
||||||
if kind == 'url':
|
if kind == 'url':
|
||||||
command = gajim.config.get('custombrowser')
|
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')
|
command = gajim.config.get('custommailapp')
|
||||||
if command == '': # if no app is configured
|
if command == '': # if no app is configured
|
||||||
return
|
return
|
||||||
|
|
Loading…
Add table
Reference in a new issue