[gnome-music/wip/jfelder/remove-mediakeys-api] remove MediaKeys api support




commit 8bbdc7fa6dd4d0805b5a77582d94e198434bd852
Author: Jean Felder <jfelder src gnome org>
Date:   Fri Oct 22 01:47:00 2021 +0200

    remove MediaKeys api support
    
    It has been superseded by MPRIS for a long time.
    
    See: https://gitlab.gnome.org/GNOME/gnome-settings-daemon/-/merge_requests/268

 gnomemusic/mediakeys.py | 106 ------------------------------------------------
 gnomemusic/window.py    |   3 --
 org.gnome.Music.json    |   1 -
 3 files changed, 110 deletions(-)
---
diff --git a/gnomemusic/window.py b/gnomemusic/window.py
index 846e3b812..f36549837 100644
--- a/gnomemusic/window.py
+++ b/gnomemusic/window.py
@@ -26,7 +26,6 @@ from gi.repository import Gtk, Gdk, Gio, GLib, GObject, Handy
 from gettext import gettext as _
 
 from gnomemusic.gstplayer import Playback
-from gnomemusic.mediakeys import MediaKeys
 from gnomemusic.player import RepeatMode
 from gnomemusic.search import Search
 from gnomemusic.trackerwrapper import TrackerState
@@ -96,8 +95,6 @@ class Window(Handy.ApplicationWindow):
         self._startup_timeout_id = 0
         self._setup_view()
 
-        MediaKeys(self._player, self)
-
     def _setup_view(self):
         self._headerbar = HeaderBar(self._app)
         self._headerbar.props.stack = self._stack
diff --git a/org.gnome.Music.json b/org.gnome.Music.json
index b4981c30e..0a1e070f0 100644
--- a/org.gnome.Music.json
+++ b/org.gnome.Music.json
@@ -16,7 +16,6 @@
         "--talk-name=org.freedesktop.Tracker3.Writeback",
         "--talk-name=org.gnome.OnlineAccounts",
         "--talk-name=org.gnome.ControlCenter",
-        "--talk-name=org.gnome.SettingsDaemon.MediaKeys",
         "--system-talk-name=org.freedesktop.login1",
         "--add-policy=Tracker3.dbus:org.freedesktop.Tracker3.Miner.Files=tracker:Audio"
     ],


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