Description: This screenlet can browse services advertised by Avahi or Zeroconf, and can launch configurable applications to use those services. It requires the Avahi daemon and its Python bindings to be installed. It recycles a lot of code from Sebastien Estienne's service-discovery-applet for the GNOME Panel, and uses icons from the Black & White GNOME icon theme (icons can be replaced with your own if you wish).
It has a small bug in that the very first time it's started, it won't find any services. You can work around this by starting it, placing it where you like, setting it to the widget layer, etc. and then quitting it. The next time you start it, it will discover services.
Note that while it can ask for required information for most services, it cannot for VNC. This is because the VNC viewer does not allow you to specify a password on the command line. You can configure the VNC viewer to pop up a password dialog with the option "-xrm '*passwordDialog: true'". This is configured by default.
Install it in the usual way, by extracting the archive to your ~/.screenlets directory. Let me know about any bugs, features you'd like, if you make a different theme for it, etc.Last changelog:
0.2 - fixed a small bug stopping Screenlets manager from starting if Avahi is not installed 0.1 - initial release
Tested om Hardy, Avahi and mt-daapd running, the screenlets sees the running Firefly service :)
I am also using Exaile with the noetworking plugin and somehow
this Screenlet maybe must help Exaile.
With your Screenlet I sees a webservice and nothing more.
Nevertheless it works...:)
except ImportError, e:
print "A required python module is missing!\n%s" % (e)
sys.exit()
this code is stoping my manager from starting , you need to add something like
if sys.argv[0].endswith('AvahiScreenlet.py'):
so it wont conflict with the manager
I added the extra check and removed the sys.exit. However, I have no way to see if this works, as I have Avahi installed, which is required for it to even work in the first place. Let me know if this fixes the issue or not.
Ratings & Comments
5 Comments
Tested om Hardy, Avahi and mt-daapd running, the screenlets sees the running Firefly service :) I am also using Exaile with the noetworking plugin and somehow this Screenlet maybe must help Exaile. With your Screenlet I sees a webservice and nothing more. Nevertheless it works...:)
except ImportError, e: print "A required python module is missing!\n%s" % (e) sys.exit() this code is stoping my manager from starting , you need to add something like if sys.argv[0].endswith('AvahiScreenlet.py'): so it wont conflict with the manager
im sorry but you need to fix this , if not i will have to blacklist your screenlet in the next release of screenlets
I added the extra check and removed the sys.exit. However, I have no way to see if this works, as I have Avahi installed, which is required for it to even work in the first place. Let me know if this fixes the issue or not.
nc