[SCM] kdeconnect packaging branch, master, updated. debian/0.9g-1-1183-g9d69498
Maximiliano Curia
maxy at moszumanska.debian.org
Fri Oct 14 14:29:20 UTC 2016
Gitweb-URL: http://git.debian.org/?p=pkg-kde/kde-extras/kdeconnect.git;a=commitdiff;h=cbc4cc5
The following commit has been merged in the master branch:
commit cbc4cc5fd783eb0e42655bcf73388c366ca79711
Author: Albert Vaca <albertvaka at gmail.com>
Date: Wed Nov 11 11:00:59 2015 -0800
Improvise a name for a player if the mpris interface doesn't provide one
---
plugins/mpriscontrol/mpriscontrolplugin.cpp | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/plugins/mpriscontrol/mpriscontrolplugin.cpp b/plugins/mpriscontrol/mpriscontrolplugin.cpp
index 64d6b40..8f45356 100644
--- a/plugins/mpriscontrol/mpriscontrolplugin.cpp
+++ b/plugins/mpriscontrol/mpriscontrolplugin.cpp
@@ -73,7 +73,10 @@ void MprisControlPlugin::addPlayer(const QString& service)
{
QDBusInterface mprisInterface(service, "/org/mpris/MediaPlayer2", "org.mpris.MediaPlayer2");
//FIXME: This call hangs and returns an empty string if KDED is still starting!
- const QString identity = mprisInterface.property("Identity").toString();
+ QString identity = mprisInterface.property("Identity").toString();
+ if (identity.isEmpty()) {
+ identity = service.mid(sizeof("org.mpris.MediaPlayer2"));
+ }
playerList[identity] = service;
qCDebug(KDECONNECT_PLUGIN_MPRIS) << "Mpris addPlayer" << service << "->" << identity;
sendPlayerList();
--
kdeconnect packaging
More information about the pkg-kde-commits
mailing list