Over the last two releases I've noticed that if you have an audio player such as Clementine running, pause the audio playback and watch a video via VLC or SMPlayer and then close the video player and try to use the media keys again, the following is logged to journald:
gsd-media-keys[2607]: Error calling method GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.mpris.MediaPlayer2.smplayer was not provided by any .service files.
From what I can see is that a service file is created for the media keys for SMPlayer, when SMPlayer is closed that service file is removed and then media keys are still bound to that service.
I get the above output for previous track, stop, play, pause and next track media keys.
I do get the following output if neither is SMPlayer or Clementine is running or if Clementine is running and playing audio and SMPlayer is open, but no video is loaded:
org.gnome.Shell.desktop[2480]: Window manager warning: Overwriting existing binding of keysym ffb5 with keysym ffb5 (keycode 54).
org.gnome.Shell.desktop[2480]: Window manager warning: Overwriting existing binding of keysym 31 with keysym 31 (keycode a-e,12,f,10,11) <-- I collapsed the range into a comma separated list
If you re-open SMPlayer and load a video, the media keys work and the GDBus error doesn't occur but the above "Overwriting ..." messages still get logged. Closing SMPlayer again does not restore media keys so that Clementine can handle them. I had SMPlayer running ~17 hours ago.
Doing a shell reload doesn't seem to fix this either.
I can't really tell if this is an SMPlay/VLC/Video Player issue or actually an issue in GSD, so filing here until someone can reassign to the relevant project.
Over the last two releases I've noticed that if you have an audio player such as Clementine running, pause the audio playback and watch a video via VLC or SMPlayer and then close the video player and try to use the media keys again, the following is logged to journald:
gsd-media- keys[2607] : Error calling method GDBus.Error: org.freedesktop .DBus.Error. ServiceUnknown: The name org.mpris. MediaPlayer2. smplayer was not provided by any .service files.
From what I can see is that a service file is created for the media keys for SMPlayer, when SMPlayer is closed that service file is removed and then media keys are still bound to that service.
I get the above output for previous track, stop, play, pause and next track media keys.
I do get the following output if neither is SMPlayer or Clementine is running or if Clementine is running and playing audio and SMPlayer is open, but no video is loaded:
org.gnome. Shell.desktop[ 2480]: Window manager warning: Overwriting existing binding of keysym ffb5 with keysym ffb5 (keycode 54). Shell.desktop[ 2480]: Window manager warning: Overwriting existing binding of keysym 31 with keysym 31 (keycode a-e,12,f,10,11) <-- I collapsed the range into a comma separated list
org.gnome.
If you re-open SMPlayer and load a video, the media keys work and the GDBus error doesn't occur but the above "Overwriting ..." messages still get logged. Closing SMPlayer again does not restore media keys so that Clementine can handle them. I had SMPlayer running ~17 hours ago.
Doing a shell reload doesn't seem to fix this either.
I can't really tell if this is an SMPlay/VLC/Video Player issue or actually an issue in GSD, so filing here until someone can reassign to the relevant project.
I hit this a while ago, while trying to get some debugging information for a Clementine bug: https:/ /github. com/clementine- player/ Clementine/ issues/ 6320
If you need any other information let me know.
Thanks
ProblemType: Bug daemon 3.32.0-1ubuntu1 ature: Ubuntu 5.0.0-16.17-generic 5.0.8 daemon
DistroRelease: Ubuntu 19.04
Package: gnome-settings-
ProcVersionSign
Uname: Linux 5.0.0-16-generic x86_64
ApportVersion: 2.20.10-0ubuntu27
Architecture: amd64
CurrentDesktop: GNOME
Date: Tue Jun 11 17:36:07 2019
InstallationDate: Installed on 2019-02-01 (129 days ago)
InstallationMedia: Ubuntu 18.04.1 LTS "Bionic Beaver" - Release amd64 (20181202)
SourcePackage: gnome-settings-
UpgradeStatus: Upgraded to disco on 2019-04-09 (63 days ago)