ARTICLE

Unity Lenses and Books

by | Sat 24 Sep 2011

One key focus of work in the Ubuntu 11.10 cycle was getting the lenses functionality in Unity in shape. 11.10 brings a series of stability and usability improvements to the lenses functionality.

One thing you will notice is that at the bottom of the dash, which you can see by clicking on the Ubuntu button in the launcher, you will see a series of different icons for the different lenses:

These lenses provide a consistent way of viewing different types of content on your computer. For example, available applications:


*Click to see full size*.

…and here is the music lens; it shows the albums on your computer, and you can search your music and then click on albums or songs to play them:


*Click to see full size*.

Aside from being generally excited about the improvements made to the lenses in Ubuntu 11.10, I do have an ulterior motive for writing this post, and a great story to share too.

In the Ubuntu 11.10 cycle there has also been a series of improvements to the *Ubuntu Software Center* and we are also now selling magazine content there. I can see a bright future where more magazines, books, and periodicals are also available. While the content is coming, it struck me that there wasn’t a consistent interface for viewing and reading this content.

What initially sprung to mind was a Kindle-like helper application. When you buy a magazine it puts the PDF into `~/Documents`, so it seemed as simple writing an app that just reads in content and displays it in a nice UI.

It then struck me that this is *exactly what lenses* are for. I shared these thoughts with some members of the design team, and someone pointed me to the work going on on the books lens by David Callé. I emailed David to share these thoughts about providing a means to view these purchased documents (as well as other documents in that directory), and David was excited about working on the lens more.

With the improvements to the lenses happening in Ubuntu 11.10, David needed to port some of his work to some new APIs, but that has been completed and he now has a decently functioning books lens. Here is a screenshot from David of it running in Unity 2D:


*Click to see full size*.

So, my ulterior motive?

Well, to encourage some of you to join David and hack on the books lens and make it rocking for Ubuntu 12.04! Here are the details:

* **Launchpad Project**: [https://launchpad.net/unity-books-lens](https://launchpad.net/unity-books-lens)
* **PPA**: [https://launchpad.net/~davidc3/+archive/books-lens](https://launchpad.net/~davidc3/+archive/books-lens)

You can also find [documentation here](https://wiki.ubuntu.com/Unity/Lenses) for the Lenses framework. Questions about lenses and other Unity technology can be asked in the `#ayatana` IRC channel on freenode.

When I spoke to David last there were still a few notable issues:

* Until a few bugs are fixed, the lens works better in Unity 2D.
* It can be very slow as the results loading is not optimized.
* Calibre integration is disabled until Calibre doesn’t make the whole session crash.

David is looking for testers willing to try to break things, as well as people who know about online sources of ebooks or books API that could be added, and folks who can review code branches.

IF you are interested in helping, be sure to check out the Launchpad project and participate. Feel free to leave questions and comments here too and I am sure David will respond. Rocking!

An invitation-only accelerator that develops industry-leading community engagement and growth via personalized training, coaching, and accountability...all tailored to your company's needs.

Want to read some more?

Happy Holidays

Happy Holidays

Just a quick note to wish all of you a happy, restful, and peaceful holidays, however and whoever you spend it with. Take care, folks, and I look forward to seeing you in 2015!

The Impact of One Person

The Impact of One Person

I am 35 years old and *people* never cease to surprise me. My trip home from Los Angeles today was a good example of this. It was a tortuous affair that should have been a quick hop from LA to Oakland, popping on BArt, and then getting home for a cup of tea and an...

Feedback Requested: Great Examples of Community

Feedback Requested: Great Examples of Community

Folks, I need to ask for some help. Like many, I have some go-to examples of great communities. This includes Wikipedia, OpenStreetmap, Ubuntu, Debian, Linux, and others. Many of these are software related, many of them are Open Source. I would like to ask your...

Ubuntu Governance Reboot: Five Proposals

Ubuntu Governance Reboot: Five Proposals

Sorry, this is *long*, but hang in there. A little while back I wrote [a blog post](https://archivedblog.jonobacon.com/2014/11/14/ubuntu-governance-reboot/) that seemed to inspire some people and ruffle the feathers of some others. It was designed as a...

Ubuntu Governance: Reboot?

Ubuntu Governance: Reboot?

For many years Ubuntu has had a comprehensive governance structure. At the top of the tree are the Community Council (community policy) and the Technical Board (technical policy). Below those boards are sub-councils such as the IRC, Forum, and LoCo councils, and...

Dealing With Disrespect: The Video

Dealing With Disrespect: The Video

A while back I wrote and released a free e-book called [Dealing With Disrespect](https://www.dealingwithdisrespect.com/). It is a book that provides a short, simple to read, free guide for handling personalized, mean-spirited, disrespectful, and in some cases,...