1
SSHSearch Unity Lens Daemon written in Python
2
-----------------------------------------------
6
This lens is based on the gdocs sample lens writen by njpatel which can
8
http://bazaar.launchpad.net/~njpatel/unity-lens-gdocs/trunk/files
12
Introspection data for libunity, libdee, and libdbusmenu-glib
16
gir1.2-dbusmenu-glib-0.4
5
sudo mkdir /usr/share/unity/lenses/sshsearch
6
sudo cp sshsearch.lens /usr/share/unity/lenses/sshsearch
7
sudo cp sshsearch-lens.png /usr/share/unity/lenses/sshsearch
22
There is no installation script for this so to get Unity to pick
25
sudo mkdir /usr/share/unity/lenses/sshsearch
26
sudo cp sshsearch.lens /usr/share/unity/lenses/sshsearch/
27
sudo cp unity-lens-sshsearch.png /usr/share/unity/lenses/sshsearch/
29
Then run the daemon with:
31
./unity-lens-sshsearch.py
33
And from another terminal restart Unity like this:
37
[the setsid ^^ is a small trick to detach the unity process from the terminal
38
so you can close it if you want. A bit like 'unity &' just better ;-) ]
40
Past this step you can freely Control-C the lens daemon to stop it,
41
do some changes, and restart it. No need to restart Unity, it will find
42
the newly started daemon automatically.
44
Getting rid of the Lens
45
-------------------------------
46
Just remove the sshsearch.lens file. Fx, by issuing:
48
sudo rm /usr/share/unity/lenses/sshsearch/sshsearch.lens
50
You may want to remove the icon as well, but that's no issue if you don't:
52
sudo rm /usr/share/unity/lenses/sshsearch/unity-lens-sshsearch.png
54
With that done, restart Unity once again with 'setsid unity' and all should