37
37
self.scope = Unity.Scope.new ("/net/launchpad/scope/image/shotwell")
38
38
self.scope.search_in_global = False
39
39
self.scope.connect ("search-changed", self.on_search_changed)
41
41
self.scope.connect ("activate-uri", self.on_activate_uri);
42
42
self.scope.connect("notify::active", self.on_lens_active)
45
51
def on_activate_uri (self, scope, uri):
46
52
GLib.spawn_command_line_async("xdg-open %s" % uri.replace(' ', '\ '))
47
53
return Unity.ActivationResponse(handled=Unity.HandledType.HIDE_DASH, goto_uri='')