[gnome-music/wip/christopherdavis/fix-nightly-mpris-launch: 2/2]	gstplayer: correctly report desktop id
- From: Christopher Davis <christopherdavis src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gnome-music/wip/christopherdavis/fix-nightly-mpris-launch: 2/2]	gstplayer: correctly report desktop id
- Date: Sun, 14 Apr 2019 14:04:55 +0000 (UTC)
commit 5273dc71b2ed2e238b37f8121f6773252147dcf3
Author: Christopher Davis <brainblasted disroot org>
Date:   Thu Apr 11 13:15:07 2019 -0400
    gstplayer: correctly report desktop id
    
    Previously we incorrectly told gstreamer that Music
    was always using the stable ID. Now we correctly
    report our desktop ID based on the profile.
 gnomemusic/gstplayer.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gnomemusic/gstplayer.py b/gnomemusic/gstplayer.py
index 7faacff0..62b5338c 100644
--- a/gnomemusic/gstplayer.py
+++ b/gnomemusic/gstplayer.py
@@ -325,8 +325,8 @@ class GstPlayer(GObject.GObject):
     def _start_plugin_installation(
             self, missing_plugin_messages, confirm_search):
         install_ctx = GstPbutils.InstallPluginsContext.new()
-
-        install_ctx.set_desktop_id('org.gnome.Music.desktop')
+        application_id = self._application.props.application_id
+        install_ctx.set_desktop_id(application_id + '.desktop')
         install_ctx.set_confirm_search(confirm_search)
 
         startup_id = "_TIME{}".format(Gtk.get_current_event_time())
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]