Bug 498875 - With same app installed from distro and Flathub and pinned to Task Manager, Task Manager icons get confused about which one is running
Summary: With same app installed from distro and Flathub and pinned to Task Manager, T...
Status: CONFIRMED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Task Manager and Icons-Only Task Manager widgets (show other bugs)
Version: master
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-01-19 04:24 UTC by DarthZiplock
Modified: 2025-01-29 23:39 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description DarthZiplock 2025-01-19 04:24:25 UTC
SUMMARY
I have two instances of Brave Browser installed on my system: the flatpak version from Discover, and the non-flatpak version from the repo via dnf.

(yes I have a legit reason for wanting to do this)

Both have completely separate configurations and use cases, and both are pinned in my Icons-Only Task Manager. Both do seem to run independently with no issue.

However, when I click on the icon in the Task Manager to launch the dnf version, the icon for the flatpak version is the one that lights up (the dnf version still opens as expected with its unique configuration, synced tabs, etc).

When I click the icon to launch the flakpak version, the icon lights up and the Flatpak version opens with its own unique setup as expected.

So these apps do operate independently, but instances of either app only show up under the flatpak version icon.

Clicking the icon to launch the dnf version makes the system think that the flatpak version is what's running, even though the flatpak version can then be launched independently with a middle click.

However, middle-clicking each app's respective icon launches the appropriate additional instance. So even when the dnf version is running, and the flatpak icon is highlighted, middle-clicking the flatpak version icon still launches a new instance of the flatpak version.

Have I explained this in a way that makes any sense whatsoever?

STEPS TO REPRODUCE
1. Install Brave browser flatpak via discover, AND install Brave browser via dnf from Brave's repo
2. Change the icon of one of the two instances so you can tell them apart, and pin them both to the Icons Only Task Manager on a panel
3. Reboot
4. Click the Brave (dnf version) icon in the Task Manager. The icon for the flatpak version will be the one that highlights
5. While the dnf version is still running, middle click the flatpak icon (which should now be highlighted). The flatpak version will now launch.
6. With both closed again, click the flatpak version icon. Flatpak version launches as expected.

OBSERVED RESULT
Dnf version and flatpak version both launch their instances under the flatpak version's icon, even though middle clicking respective icons still launches respective new instances properly.

EXPECTED RESULT
Dnf version should launch under its own icon.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora 41
KDE Plasma Version: 6.2.5
KDE Frameworks Version: 6.10.0
Qt Version: 6.8.1

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2025-01-21 22:17:07 UTC
Yeah, the Task Manager doesn't handle this specific case well right now.
Comment 2 DarthZiplock 2025-01-29 23:39:12 UTC
(In reply to Nate Graham from comment #1)
> Yeah, the Task Manager doesn't handle this specific case well right now.

But in any case thank you for at least acknowledging it. Apple is refusing to look at my detailed reports of external HDDs getting spun up and down repeatedly when you put a Mac to sleep with one connected leading to super premature drive failure. 

KDE for the win.