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.
There are three essential files that compose a lens.
.lensfile stored in
/usr/share/unity/lenses. This details the name, icon, and D-Bus address of a lens for Unity.
.servicefile 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
.servicefile), but canonically these are located in
/usr/lib/unity-lens-video/unity-lens-video for a concrete example of how these files work together.