Skip to content
Snippets Groups Projects
Commit 217a7d6f authored by nkour's avatar nkour
Browse files

fix by aldafu so abc@dore and www.abc get prefixed so gnome-open and kde's open work ok

parent 4fef38de
No related branches found
No related tags found
No related merge requests found
......@@ -123,7 +123,13 @@ class Interface:
os.startfile(uri) # if pywin32 is installed we open
except:
pass
else:
if kind == 'url' and not uri.startswith('http://'):
uri = 'http://' + uri
elif kind == 'mail' and not uri.startswith('mailto:'):
uri = 'mailto:' + uri
if gajim.config.get('openwith') == 'gnome-open':
command = 'gnome-open'
elif gajim.config.get('openwith') == 'kfmclient exec':
......
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