Skip to content
This repository has been archived by the owner on Dec 4, 2020. It is now read-only.

Media key shortcuts are inconsistent for some reason #31

Closed
urandom opened this issue Dec 26, 2015 · 9 comments
Closed

Media key shortcuts are inconsistent for some reason #31

urandom opened this issue Dec 26, 2015 · 9 comments

Comments

@urandom
Copy link

urandom commented Dec 26, 2015

Under gnome-shell, only the first time any of those shortcuts are used actually works. And by that, I mean that regardless of the shortcut, only the first press actually works. Meaning if I pause, or go to the next/prev track for the first time, I can't unpause, or go to the next or previous track afterwards with the shortcut. And I only get one action per app lifecycle, not one per type.

@twolfson
Copy link
Owner

This sounds like a deeper issue with Electron. I will create a proof of concept gist to see if it's our app or not

@twolfson
Copy link
Owner

Alright, proof of concept created. Can you please follow the instructions here:

https://gist.github.com/twolfson/0c6b8062c712ddabf882#file-readme-md

The app that is running via npm start will have further instructions on verifying media keys work properly.

@urandom
Copy link
Author

urandom commented Dec 27, 2015

I'm yet to try that, just trying to report that after managing to install the mpris service, the media keys started working properly. Possibly because the mpris extension is using them, as opposed to electron.

@urandom
Copy link
Author

urandom commented Dec 27, 2015

Results from the gist:
First time, randomly hitting the media keys and exiting:

npm start

> gist-electron-media-keys@1.0.0 start /tmp/gist-electron-media-keys
> electron index.js

medianexttrack registration bound!
mediaplaypause registration bound!
mediaprevioustrack registration bound!
mediastop registration bound!
mediaplaypause pressed
All windows closed. Exiting application

Second time, same scenario:

npm start

> gist-electron-media-keys@1.0.0 start /tmp/gist-electron-media-keys
> electron index.js

medianexttrack registration bound!
mediaplaypause registration bound!
mediaprevioustrack registration bound!
mediastop registration bound!
medianexttrack pressed
All windows closed. Exiting application

Seems its the same behavior, only the first kicked media key gets printed, then nothing.

@twolfson
Copy link
Owner

Alright, sounds like an issue with electron. What OS are you using so we can report this to the electron repo?

@urandom
Copy link
Author

urandom commented Dec 28, 2015

I'm on arch linux

@twolfson
Copy link
Owner

Cool, thanks. Going to open an issue on electron =)

@twolfson
Copy link
Owner

We have created the issue: electron/electron#3941

@twolfson
Copy link
Owner

Closing since electron is considering this as wontfix =/

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants