Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

2 Answers 2

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 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

 
discard

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.