Commit d711ff0c authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇

[Task Manager] Strip applications: scheme from launcher URL in MPris source

Otherwise mapping fails.

Differential Revision:
parent d094bd37
......@@ -228,6 +228,9 @@ Item {
// MPRIS spec explicitly mentions that "DesktopEntry" is with .desktop extension trimmed
// Moreover, remove URL parameters, like wmClass (part after the question mark)
var desktopFileName = launcherUrl.toString().split('/').pop().split('?')[0].replace(".desktop", "")
if (desktopFileName.indexOf("applications:") === 0) {
desktopFileName = desktopFileName.substr(13)
for (var i = 0, length = connectedSources.length; i < length; ++i) {
var source = connectedSources[i];
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