summaryrefslogtreecommitdiff
path: root/python/deskbar-handler
diff options
context:
space:
mode:
authorMarcus Fritzsch <mfritzsch@src.gnome.org>2007-11-15 23:38:13 +0000
committerMarcus Fritzsch <mfritzsch@src.gnome.org>2007-11-15 23:38:13 +0000
commit70f44aeab4e0ece3c0ab7ccb196847699ce9805f (patch)
tree79ef051ab500dcf238ce6c0d6acb7a886b6a76e6 /python/deskbar-handler
parent799ccac2b359eab7237ae28588247673f6f6820a (diff)
downloadtracker-70f44aeab4e0ece3c0ab7ccb196847699ce9805f.tar.gz
URI quotation issues fixed, this fixes bug #495512
svn path=/trunk/; revision=1021
Diffstat (limited to 'python/deskbar-handler')
-rw-r--r--python/deskbar-handler/tracker-module.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/python/deskbar-handler/tracker-module.py b/python/deskbar-handler/tracker-module.py
index b8d518749..6624e239f 100644
--- a/python/deskbar-handler/tracker-module.py
+++ b/python/deskbar-handler/tracker-module.py
@@ -183,7 +183,7 @@ class TrackerLiveSearchMatch (deskbar.interfaces.Match):
else:
if not self.result['type'] in ('GaimConversations', 'Emails'):
try:
- self._pixbuf = deskbar.core.Utils.load_icon ('file://'+result['uri'])
+ self._pixbuf = deskbar.core.Utils.load_icon ('file://'+result['quoted_uri'])
except:
pass # some icons cannot be loaded... (e.g. for non existent file or illegal URI)
@@ -191,7 +191,7 @@ class TrackerLiveSearchMatch (deskbar.interfaces.Match):
# Add extra default actions where it makes sense
if not result['type'] in ["Emails", "Applications", "GaimConversations"]:
- self.add_all_actions (get_actions_for_uri(result['uri']))
+ self.add_all_actions (get_actions_for_uri(result['quoted_uri']))
def get_name (self, text = None):
return self.get_verb() % self.result
@@ -258,8 +258,8 @@ class TrackerLiveSearchAction (deskbar.interfaces.Action):
if self.desktop:
self.desktop.launch ([])
else:
- deskbar.core.Utils.url_show ('file://'+url_quote (self.result['uri'], ';?:@&=+$,./'))
- print 'Opening Tracker hit:', url_quote (self.result['uri'], ';?:@&=+$,./')
+ deskbar.core.Utils.url_show ('file://'+self.result['quoted_uri'])
+ print 'Opening Tracker hit:', self.result['quoted_uri']
except:
print >> sys.stderr, "*** Could not activate Hit %s: %s" % (self.result['uri'], sys.exc_info()[1])
@@ -403,6 +403,7 @@ class TrackerLiveSearchHandler(deskbar.interfaces.Module):
output['uri'] = info[0]
output['name'] = os.path.basename(output['uri'])
output['type'] = info[1]
+ output['quoted_uri'] = url_quote (info[0], ';?@&=+$,./')
if not TYPES.has_key(output['type']):
output['type'] = 'Files'