From 217a7d6fb1137e9fb30d6e813e68d240cc29cd12 Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Thu, 30 Jun 2005 13:33:21 +0000 Subject: [PATCH] fix by aldafu so abc@dore and www.abc get prefixed so gnome-open and kde's open work ok --- src/gajim.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/gajim.py b/src/gajim.py index 4f1df391c..ab18d79f5 100755 --- a/src/gajim.py +++ b/src/gajim.py @@ -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':