~bernd-sch/onehundredscopes/sshsearch

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
SSHSearch Unity Lens Daemon written in Python
-----------------------------------------------

Credits
-------
This lens is based on the gdocs sample lens writen by njpatel which can 
be found on launchpad.
http://bazaar.launchpad.net/~njpatel/unity-lens-gdocs/trunk/files

Dependencies
------------
Introspection data for libunity, libdee, and libdbusmenu-glib

gir1.2-unity-4.0
gir1.2-dee-0.5
gir1.2-dbusmenu-glib-0.4
python-paramiko

Trying out the lens
-------------------

There is no installation script for this so to get Unity to pick
this up you need to:

  sudo mkdir /usr/share/unity/lenses/sshsearch
  sudo cp sshsearch.lens /usr/share/unity/lenses/sshsearch/
  sudo cp unity-lens-sshsearch.png /usr/share/unity/lenses/sshsearch/

Then run the daemon with:

  ./unity-lens-sshsearch.py

And from another terminal restart Unity like this:

  setsid unity

[the setsid ^^ is a small trick to detach the unity process from the terminal
 so you can close it if you want. A bit like 'unity &' just better ;-) ]

Past this step you can freely Control-C the lens daemon to stop it,
do some changes, and restart it. No need to restart Unity, it will find
the newly started daemon automatically.

Getting rid of the Lens
-------------------------------
Just remove the sshsearch.lens file. Fx, by issuing:

  sudo rm /usr/share/unity/lenses/sshsearch/sshsearch.lens

You may want to remove the icon as well, but that's no issue if you don't:

  sudo rm /usr/share/unity/lenses/sshsearch/unity-lens-sshsearch.png

With that done, restart Unity once again with 'setsid unity' and all should
be back to normal.