https://bugs.kde.org/show_bug.cgi?id=465393

--- Comment #3 from Alexis Murzeau <amub...@gmail.com> ---
I found that the issue is related to this line of code:
https://invent.kde.org/plasma/plasma-desktop/-/blob/1988f0756ec9b61d6eff6eae14c1023502d7f701/applets/taskmanager/package/contents/ui/Task.qml#L233

var streams = pa.streamsForAppId(task.appId);

Some applications like the first pinned application icon, foobar2000 and gitk
in the screenshots don't have a task.appId (using console.log() I found that
the string was empty).
I guess that when appId is an empty string, pa.streamsForAppId will return all
streams, that would explain why it shows a mute icon on them.

Adding a if(task.appId) around that line of code fixes the issue:
---
/usr/share/plasma/plasmoids/org.kde.plasma.taskmanager/contents/ui/Task.qml.bak
    2023-01-19 12:40:03.000000000 +0100
+++ /usr/share/plasma/plasmoids/org.kde.plasma.taskmanager/contents/ui/Task.qml
2023-02-06 23:41:02.020817778 +0100
@@ -230,7 +230,10 @@

         // Check appid first for app using portal
         // https://docs.pipewire.org/page_portal.html
-        var streams = pa.streamsForAppId(task.appId);
+        var streams = [];
+        if(task.appId) {
+            pa.streamsForAppId(task.appId);
+        }
         if (!streams.length) {
             streams = pa.streamsForPid(task.pid);
             if (streams.length) {

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to