I'm trying to listen for MediaKey events under Gnome 3 (Gnome Shell). All the examples I find refer to using DBus to connect to org.gnome.SettingsDaemon.MediaKeys. This service doesn't seem to exist on my platform.
I'm trying to do this using Python via GObject-Introspection. The examples say do something like this
from gi.reposiotry import Gio
connection = Gio.bus_get_sync(Gio.BusType.SESSION, None)
proxy = Gio.DBusProxy.new_sync(connection, 0, None, 'org.gnome.SettingsDaemon', '/org/gnome/SettingsDaemon/MediaKeys', 'org.gnome.SettingsDaemon.MediaKeys', None)
This fails, unsurprisingly. Am I missing an install which provides this service, or do I have to do this another way?
UPDATE
This is for a media key listener, which listens for key events no matter which window has the focus. It's meant for an app which doesn't even have it's own GUI, and is Desktop wide. That's why I tried the Mediakeys DBus service, only to find it is missing from my Desktop.
UPDATE 2
I should be clear, the MediaKeys service is not present. I can't event connect to the service and create the proxy as it's not there. What I'm wanting to know is, am I missing an install, or was this service removed in one of the Gnome 3 updates? If it was removed, then how can I listen for Media Keys in this new environment? I'm running Gnome 3.8.2.
UPDATE 3
Sorry should have mentioned this in the first place. I'll perfect my question asking one day :-}. I'm running Gentoo.