better way to add http://. see #4857
This commit is contained in:
parent
5615402a73
commit
dccf065418
1 changed files with 3 additions and 2 deletions
|
@ -714,6 +714,9 @@ def launch_browser_mailer(kind, uri):
|
||||||
if kind in ('mail', 'sth_at_sth') and not uri.startswith('mailto:'):
|
if kind in ('mail', 'sth_at_sth') and not uri.startswith('mailto:'):
|
||||||
uri = 'mailto:' + uri
|
uri = 'mailto:' + uri
|
||||||
|
|
||||||
|
if kind == 'url' and uri.startswith('www.'):
|
||||||
|
uri = 'http://' + uri
|
||||||
|
|
||||||
if gajim.config.get('openwith') == 'gnome-open':
|
if gajim.config.get('openwith') == 'gnome-open':
|
||||||
command = 'gnome-open'
|
command = 'gnome-open'
|
||||||
elif gajim.config.get('openwith') == 'kfmclient exec':
|
elif gajim.config.get('openwith') == 'kfmclient exec':
|
||||||
|
@ -726,8 +729,6 @@ 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 uri.startswith('www.'):
|
|
||||||
uri = 'http://' + uri
|
|
||||||
elif kind in ('mail', 'sth_at_sth'):
|
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
|
||||||
|
|
Loading…
Add table
Reference in a new issue