[gnome-music/wip/christopherdavis/fix-nightly-mpris-launch: 1/2] mpris: Correctly report the DesktopEntry for both profiles
- From: Christopher Davis <christopherdavis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/christopherdavis/fix-nightly-mpris-launch: 1/2] mpris: Correctly report the DesktopEntry for both profiles
- Date: Sun, 14 Apr 2019 14:04:50 +0000 (UTC)
commit 174c78ea4d4a9dda7815bbeaca5e315bf7f6e9a9
Author: Christopher Davis <brainblasted disroot org>
Date: Thu Apr 11 12:32:31 2019 -0400
mpris: Correctly report the DesktopEntry for both profiles
Music was launching the wrong profile if you clicked on the
MPRIS entry. This is because the app was always reporting
itself as the stable version. Now we account for all profiles
by using the application id.
Closes #273
gnomemusic/mpris.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gnomemusic/mpris.py b/gnomemusic/mpris.py
index a00b6f60..c92df452 100644
--- a/gnomemusic/mpris.py
+++ b/gnomemusic/mpris.py
@@ -689,7 +689,7 @@ class MediaPlayer2Service(Server):
'CanRaise': GLib.Variant('b', True),
'HasTrackList': GLib.Variant('b', True),
'Identity': GLib.Variant('s', 'Music'),
- 'DesktopEntry': GLib.Variant('s', 'org.gnome.Music'),
+ 'DesktopEntry': GLib.Variant('s', self.app.props.application_id),
'SupportedUriSchemes': GLib.Variant('as', [
'file'
]),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]