From da9cbe64cc290a7c6567aaaf88162dbb3f2a7bb3 Mon Sep 17 00:00:00 2001 From: Martin Wagner Date: Tue, 15 Mar 2022 00:10:03 +0100 Subject: [PATCH] moved MPRIS startup --- src/mpdevil.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/mpdevil.py b/src/mpdevil.py index ebeac3c..25472d1 100755 --- a/src/mpdevil.py +++ b/src/mpdevil.py @@ -3483,10 +3483,6 @@ class MainWindow(Gtk.ApplicationWindow): self._use_csd=self._settings.get_boolean("use-csd") self._size=None # needed for window size saving - # MPRIS - if self._settings.get_boolean("mpris"): - dbus_service=MPRISInterface(self, self._client, self._settings) - # actions simple_actions_data=( "settings","profile-settings","stats","help","menu", @@ -3789,6 +3785,9 @@ class mpdevil(Gtk.Application): self._window=MainWindow(self._client, self._settings, self._notify, application=self) self._window.connect("delete-event", self._on_quit) self._window.insert_action_group("mpd", MPDActionGroup(self._client)) + # MPRIS + if self._settings.get_boolean("mpris"): + dbus_service=MPRISInterface(self._window, self._client, self._settings) # actions action=Gio.SimpleAction.new("about", None) action.connect("activate", self._on_about)