I've added configuration support to the dbus plugin. I haven't done much testing so let me know if you find any issues with it. You can find some usage examples in the dbus plugin code. This is what KDE needs for compiz configuration support but you can of course use it for other configuration systems too. E.g. writing a simple daemon that monitors a text file and use this dbus interface should be trivial if someone wants to do that. There's still things missing in the dbus plugin. Like introspection, ability to query available options and their restrictions.. I'll add these things once someone needs them, or even better, I'll accept patches from someone who implements them. Simple example for how it can be used with dbus-send for command line configuration of compiz: dbus-send --type=method_call --dest=org.freedesktop.compiz \ /org/freedesktop/compiz/core/allscreens/command0 \ org.freedesktop.compiz.set string:'gnome-terminal' -David
Hi, I think there's a little bug in the dbus connetion handling. It tries to close a shared connection, but shared connections should only be unreferenced, never closed. I'm refering to this post on the dbus mailinglist. http://lists.freedesktop.org/archives/dbus/2006-October/005904.html Greetings, Gerd
David Reveman wrote:> I've added configuration support to the dbus plugin. I haven't done much > testing so let me know if you find any issues with it. You can find some > usage examples in the dbus plugin code.Wowa! This is really spooky! I presume this would allow the creation of a configuration editor that is independant of the configuration backend? If so, I was discussing exactly this kind of functionality last night on IRC... Cool :) Cheers Col.
On Oct 05, 06 14:36:03 -0400, David Reveman wrote:> I've added configuration support to the dbus plugin. I haven't done much > testing so let me know if you find any issues with it. You can find some > usage examples in the dbus plugin code.dbus-send --print-reply --type=method_call --dest=org.freedesktop.compiz /org/freedesktop/compiz/core/allscreens/command0 org.freedesktop.compiz.get as indicated in the source doesn't work: Error org.freedesktop.DBus.Error.UnknownMethod: Method "get" with signature "" on interface "org.freedesktop.compiz" doesn't exist Matthias -- Matthias Hopf <mhopf@suse.de>, SuSE labs, Zimmer 3.2.06, Tel. 74053-715