Re: [gnome-flashback] Media keys support



Hi,

On Mon, Oct 27, 2014 at 3:33 AM, Balló György <ballogyor gmail com> wrote:
Hi,

In order to support media keys and other keybindings that are not
handled my metacity, the following D-Bus interface needs to be
implemented within gnome-flashback, which is used by GSD's media keys
plugin:
https://git.gnome.org/browse/gnome-settings-daemon/tree/plugins/media-keys/org.gnome.ShellKeyGrabber.xml

I will try to create patches for this. We need this to be under different interface name, for example - org.gnome.KeyGrabber or org.gnome.Shell.KeyGrabber so we don't need to own Shell name.

The original bugzilla tasks:
https://bugzilla.gnome.org/show_bug.cgi?id=643111
https://bugzilla.gnome.org/show_bug.cgi?id=693016

I don't really know how should it work. We can probably reuse some
code from the old keygrabber:
https://git.gnome.org/browse/gnome-settings-daemon/commit/plugins/common/gsd-keygrab.c?id=66c975cd90736e32f20ffd36846301d68e7a08e7

Or maybe implement it within metacity:
https://git.gnome.org/browse/mutter/commit/?id=a39cabfadb1d160b284ca3a17fdbf4f9e7c6d42c

No.

Alberts, could you look at this issue?

Looks like this is how it should be done:
1) Own org.gnome.Shell for name;
2) Export interface on org.gome.Shell.
3) gnome settings daemon will call GrabAccelerators. We should store these accelerators and generate action id for each accelerator.
4) When we detect that one of previously stored accelerators are activated we should emit AcceleratorActivated signal with generated action id.

At least testing with simply emitting signal I was able to mute audio.

Is this all we need? handle all accelerators that are listed in org.gnome.settings-daemon.plugins.media-keys?

--
Alberts Muktupāvels


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]