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.

I want to create a home build lens for the 12.04 dash and liked to use one of the default lenses as example. I'm thus for looking where I can find the files of these lenses.

share|improve this question
    
just the folders with lens locations won't be all you need. you also need .service files and a couple other things. you should either use the quickly lens template or follow along with some python lens tutorials you can find on google saravananthirumuruganathan.wordpress.com/2011/08/05/… expresses some other files to be concerned with –  hbdgaf Jul 22 '12 at 18:32
add comment

1 Answer 1

There are three essential files that compose a lens.

  • A .lens file stored in /usr/share/unity/lenses. This details the name, icon, and D-Bus address of a lens for Unity.

  • A .service file stored in /usr/share/dbus-1/services. This points to the location of a lens' query executable; D-Bus will see this executable and act as IPC between it and Unity.

  • Finally, the executable of your lens may be placed anywhere in the filesystem (you specify where in the .service file), but canonically these are located in /usr/lib.

Look at /usr/share/unity/lenses/video/video.lens, /usr/share/dbus-1/services/unity-lens-video.service, and /usr/lib/unity-lens-video/unity-lens-video for a concrete example of how these files work together.

share|improve this answer
add comment

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.