1

How can I get results from the HUD DBus service under Gnome?

view story
linux-howto

http://askubuntu.com – I've been playing around with the DBus interface for Unity's HUD with some success. For example, the following Python script will show some results when run from the terminal: #!/usr/bin/env python import dbus session_bus = dbus.SessionBus() proxy_obj = session_bus.get_object('com.canonical.hud', '/com/canonical/hud') hud_iface = dbus.Interface(proxy_obj, dbus_interface='com.canonical.hud') query_result = hud_iface.StartQuery("ope", 5) for res in query_result[1]: print res[0].encode('utf8') hud_iface.CloseQuery(query_result[2]) Running it under Unity (in 12.10) I get: $ ./hud.py Fil (HowTos)