петък, 16 ноември 2012 г.

dbus resolved

In case you've been living in a cave for the last 10 years in regard of Linux desktop managers you've probably missed D-Bus, or at least tried to avoid it as much as possible due to its over-engineered nature or the fact that its not automatically started by your bare bones window manager.

At least I did.

But today I found the best way to experiment/use it in your favorite shell. The command is called qdbus (oh well, you have to install qt for that, but it's worth it!).

  • Without arguments it will print all available services (first level address in dbus).
  • With a servicename as a single argument it prints all paths available for that service name (second level address)
  • With a servicename and path it lists all available methods, signals and events (third level)
  • You can specify all three (service, path, method) (+ arguments) and whoala! You'll never get the bad feeling in your stomach again, when you try to call a method or two via dbus

I hope this will help somebody else.

1 коментар:

Unknown каза...

Not bad. My only attempts to tinker with DBus were related to the Skype API and failed miserably since I had a very poor idea of what the heck was going on. Maybe it's time I gave it another shot.