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

This commit is contained in:
Nikos Kouremenos 2005-06-30 13:33:21 +00:00
parent 4fef38de93
commit 217a7d6fb1
1 changed files with 6 additions and 0 deletions

View File

@ -123,7 +123,13 @@ class Interface:
os.startfile(uri) # if pywin32 is installed we open os.startfile(uri) # if pywin32 is installed we open
except: except:
pass pass
else: 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': 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':