Re: [Deskbar] Pushing handler updates from a central repo



Hi!

The intergration of the updater changed. Instead of a deskbar-applet only
updater we now make use of dbus to provide a application independent
method for retrieving updates.

The package includes a dbus "daemon" (dbus-object.py), a example client
(dbus-client.py) and a deskbar-applet specific specs file
(specs/deksbarapplet.py).

How it works:
Fist of all, you have to connect to the dbus object
org.gnome.NewStuffManager to spawn an application specific object.
Actually, this object handles the update stuff. First, get a list of all
available updates (neccessary or not). Second, provide a list of plugins
you want to be checked for available updates. This emits a signal for all
plugins telling you whether an update is available or not. You can also
skip this step and compare the versions in the client.
Last but not least, you can download and install an update.

The example client does all these steps. Currently, it's not integrated
within deskbar-applet. Actually, it places leoorg.py in
~/.gnome2/deskbar-applet/handlers, but it shows you how it works.

So download it at
http://www.k-d-w.org/clipboard/deskbar/updater-dbus.tar.gz and unpack it.
In addition, you'll need the python-elementtree package to get it working.
Now run dbus-object.py and dbus-client.py. Updater.py is just the old
version and won't work anymore.

Furthermore, have a look at http://live.gnome.org/DeskbarApplet/PluginManager

I'm going to write a intergration into deskbar-applet and some more
documentation later next week or so.

So please give it a try and let me know what you think.

-- 
Greetings,
Sebastian Pölsterl



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]