Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When I import 'Lens' from 'gi.repository' in Python, it shows that the Lens doesn't exist, as well as 'Scope'. But 'SimpleScope' exist. Is there any structural changing between Ubuntu 14.04 and Ubuntu 12.04? Thx

share|improve this question

Yes lens available in 14.04.

You can install it by :

sudo apt-get install unity-lens-applications
share|improve this answer
This doesn't answer the question. OP is asking about the API, not the lens applications. – muru Aug 3 '14 at 12:56

There were changes to the scopes API between 12.04 and 14.04. In particular, the distinction between "lenses" and "scopes" was removed: now there are only scopes, with some scopes aggregating results from other scopes. These changes carried over to the API too.

Unfortunately, things have changed again for Unity 8 (which primarily means the phone/tablet UI for now). The documentation for this new API can be found at:

Unfortunately there is no Python binding for this API yet.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.