![]() ![]() Self._dbusInterface.PressedKey(action, reply_handler=lambda: None, error_handler=lambda *e: None)ĭ(set_as_default=True) # Async call, otherwise we get stuck (the server is running in this same thread) Self._dbusInterface = dbus.Interface(service, Gnome_DbusInterface) ![]() Service = dbus.SessionBus().get_object(Gnome_DbusBusName, Gnome_DbusObjectPath) Self._send_action_to_all_apps('Previous') Self.MediaPlayerKeyPressed(app, PressedPlay(self): Self._apps = in_signature='sd', out_signature='')ĭef GrabMediaPlayerKeys(self, app_name, in_signature='s', out_signature='')ĭef ReleaseMediaPlayerKeys(self, MediaPlayerKeyPressed(self, app_name, in_signature='s')ĭef _send_action_to_all_apps(self, action): Mate_DbusInterface = ''Ĭlass SettingsDaemonObject():ĭ._init_(self, session_bus, object_path=Gnome_DbusObjectPath) Mate_DbusObjectPath = '/org/mate/SettingsDaemon/MediaKeys' Gnome_DbusObjectPath = '/org/gnome/SettingsDaemon/MediaKeys' I'll file proper bug reports with upstream in a day or two. Keeping the old org.gnome namespace in mate-settings-daemon would have meant existing stuff would have continued to work, and would have only caused problems presumably if someone somehow managed to run MATE and Gnome3 at the same time. I do wonder why the MATE developers changed the DBUS namespace used by mate-settings-daemon in the first place. If you run these patches and subsequently move to a Gnome3 desktop you'll have to reinstall Sonata and Totem (sudo apt-get -reinstall install totem sonata). They are pretty dumb and dirty patches, they just replace the namespace used (by Sonata and Totem) to issue hotkey notifications on DBUS to match the one now used by MATE. I have written a couple of brain-dead patches for Sonata and Totem which may be of interest to someone I suspect it will be straightforward to write similar patches for other multimedia apps. It looks like the majority of multimedia apps will need to be upgraded to explicitly support multimedia hotkeys (i.e "Play", "Pause", "Stop", "Previous" & "Next") in MATE.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |