Unity lens: small unity 5.0 fix

This commit is contained in:
Jean-Francois Dockes 2012-03-27 14:21:19 +02:00
parent aa19a9f5b9
commit ba65253f8d

View File

@ -210,9 +210,10 @@ class Scope (Unity.Scope):
# Pass all uri without fragments to the desktop handler
if uri.find("#") == -1:
# Reset browsing state when an app is launched
self.reset ()
if Unity._version == "4.0":
self.reset ()
return Unity.ActivationResponse.new(Unity.HandledType.NOT_HANDLED,
uri)
uri)
# Pass all others to recoll
proc = subprocess.Popen(["recoll", uri])