Busy making things: tinycast, github, links, photos, @mc.

Come on Ride the D-BUS (hey), Ride it (woo woo!)

Posted: March 5th, 2005 | Author: | Filed under: .NET, Linux, Open Source, Python, Web Services | 8 Comments »

The February 2005 issue of Linux Journal contains a gem of an article by Robert Love called Get on the D-BUS. I didn’t notice it until I was trawling through the ACM Digital Library while working on a paper for my computer organization class. All tangents aside it’s a great article and anyone who uses Linux on the desktop should check it out, as I think that you’re going to see D-BUS do a lot of heavy lifting over the next few years.

I’d strongly suggest reading the LJ article for a full definition, but to summarize: D-BUS is an interprocess communications system that is (or soon will be) used in both Gnome and KDE environments. It allows apps to send and receive messages to and from each other in a happy object-oriented easy-as-it-should-be way. The Gnome Mono codemonkeys are using it with Beagle, and probably other apps. There’s a D-BUS package and several apps that use it backed in to Hoary. There’s even a Security Enhanced DBUS built in to Security Enhanced Linux.

The APIs and the software are under constant development, but there are already working libraries for C, Glib, and (yes I checked) even python. Here’s example-client.py (edited slightly to fit in my layout):

#!/usr/bin/env python
import dbus
bus = dbus.SessionBus()
remote_service = bus.get_service("org.designfu.SampleService")
remote_object = remote_service.get_object("/SomeObject",
hello_reply_list = remote_object.HelloWorld("Hello!")
hello_reply_tuple = remote_object.GetTuple()
hello_reply_dict = remote_object.GetDict()
print (hello_reply_list)
print str(hello_reply_tuple)
print str(hello_reply_dict)

It looks like D-BUS (or DBUS if you would prefer to abbreviate it that way) is going to be adopted in both the Gnome and KDE camps, which is A Good Thing. I think that it is going to lead to better interaction with applications on the desktop. I imagine a sexy Growl workalike telling me about all kinds of things that I may or may not want to know in a cute and unobtrustive way. As the technology is adopted, I see apps talking to one another and reacting to one another more and more. I see apps and frameworks taking advantage of external web services flowing over DBUS.

Keep an eye on this list of apps that use D-BUS expand quickly.

8 Comments on “Come on Ride the D-BUS (hey), Ride it (woo woo!)”

  1. 1 Ulf Forsmark said at 2:08 pm on June 27th, 2005: advant

    Come on Ride the D-BUS…

  2. 2 Chantal Coppex said at 5:02 pm on July 12th, 2005: noise and kisses

    Come on Ride the D-BUS…

  3. 3 Free Video Clips said at 4:19 am on May 28th, 2007:

    Free Video Clips…

    No comments, just interest….

  4. 4 blog said at 11:53 pm on July 31st, 2007:



  5. 5 rgfqhtptw said at 1:01 pm on August 21st, 2007:

    mLFnup jiyaargmqufg, [URL=http://erhgbnxfngaf.com/]txejvgkefqtf[/URL], [LINK=http://ftqlaupkyepu.com/]ogoskufybqox[/LINK], http://qdzmrykswocj.com/

  6. 6 50fccdc7afa0 said at 2:09 am on May 14th, 2008:



  7. 7 buy propecia said at 7:27 pm on January 24th, 2011:

    I apologise, but, in my opinion, you are not right. I am assured. Write to me in PM.

  8. 8 Van Mustain said at 10:33 am on February 16th, 2011:

    This blog seems to recieve a large ammount of visitors. How do you promote it? It offers a nice unique twist on things. I guess having something authentic or substantial to say is the most important thing.