Commit 558cada5 authored by Jonathan Marten's avatar Jonathan Marten
Browse files

MPRIS2: Add player icon for Akregator

Chrome does not respond to a DBus request for its desktop file,
so it is not surprising that QtWebEngine doesn't either.
parent ead4ca36
......@@ -330,7 +330,6 @@ void Mixer_MPRIS2::addMprisControlAsync(QString busDestination)
mad->playerIfc = qdbiPlayer;
controls.insert(id, mad);
/*
* WTF: - asyncCall("Get", arg) : returns an error message (see below)
* - asyncCallWithArgumentList("Get", arg) : returns an error message (see below)
......@@ -372,6 +371,8 @@ static QString getIconNameFromPlayerId(const QString &id)
// Surprisingly...
if (id.startsWith(QLatin1String("chrome"))) return ("chrome-browser");
if (id.startsWith(QLatin1String("chromium"))) return ("chromium-browser");
// Uses QtWebEngine which is based on Chromium, so as above...
if (id.startsWith(QLatin1String("akregator"))) return ("akregator");
return (QString()); // no application known
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment