playmymusic icon indicating copy to clipboard operation
playmymusic copied to clipboard

Correct the MediaKeys bus

Open bilelmoussaoui opened this issue 6 years ago • 2 comments

Currently, the MediaKeys bus is not correctly defined.

If you run the application in a sandboxed env like Flatpak the mediakeys won't work. You can take a look at the default elementary Music application if you want an idea how things should be done.

bilelmoussaoui avatar Aug 27 '18 09:08 bilelmoussaoui

@bilelmoussaoui I compared both MedieKeyListener. It looks very similar:

https://github.com/elementary/music/blob/master/src/Objects/MediaKeyListener.vala

https://github.com/artemanufrij/playmymusic/blob/master/src/Interfaces/MediaKeys.vala

artemanufrij avatar Sep 02 '18 11:09 artemanufrij

Hi mate. I'm using Melody on elementary OS 6 Odin on an Asus notebook.

The only issue is that it doesn't recognize media shortcuts. The only one that works is the space shortcut, to pause and play.

The Music app (default of elementary) normally recognizes keyboard media shortcuts without any extra configuration.

is there anything i can do to work the media keyboard controls?

diogopessoa avatar Sep 30 '21 23:09 diogopessoa