Bug 493511 - Task manager browser icon - firefox is replaced by chromium
Summary: Task manager browser icon - firefox is replaced by chromium
Status: RESOLVED WORKSFORME
Alias: None
Product: plasmashell
Classification: Plasma
Component: Task Manager and Icons-Only Task Manager widgets (other bugs)
Version First Reported In: 6.1.90
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-22 22:55 UTC by Parag W
Modified: 2024-10-05 23:06 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 Parag W 2024-09-22 22:55:33 UTC
SUMMARY
Pinning Firefox to task manager when chromium is installed brings Chromium icon in its place after logout/login. 

STEPS TO REPRODUCE
1. Install Firefox and Chromium both
2. Start Firefox, click on icon and Pin to Task Manager
3. Logout, log back in - see Chromium icon in its place that launches Chromium.

OBSERVED RESULT
Chromium icon launches Chromium instead of Firefox icon launching Firefox.

EXPECTED RESULT


SOFTWARE/OS VERSIONS
Linux/KDE Plasma:
KDE Plasma Version: 6.1.90 
KDE Frameworks Version:  
Qt Version: 6.7.2
Comment 1 Nate Graham 2024-09-23 17:01:09 UTC
That's very strange. Two questions:
1. Before step 1, were any web browsers pinned? Or no?
2. What's set as the default browser in System Settings > Default Applications?
Comment 2 Parag W 2024-09-26 00:40:10 UTC
(In reply to Nate Graham from comment #1)
> That's very strange. Two questions:
> 1. Before step 1, were any web browsers pinned? Or no?

Yes, I believe both Chromium and Firefox were pinned.

> 2. What's set as the default browser in System Settings > Default
> Applications?

That'd be Chromium. 

This issue has come and gone so hard to debug - just today Firefox was replaced with Chromium then I removed it and added Firefox back - so far it has stayed that way. The only thing I can think of is I go back and forth between Arch system KDE and daily recompiled one using kde-builder installed in my home dir.
Comment 3 Nate Graham 2024-10-03 20:28:52 UTC
The web browser entry on there is special, it actually tracks the default browser. When that changes, the icon changes too.

If you remove that entry and pin Firefox or Chromium specifically, it will be the exact app, not "whatever is the default web browser".

So it's possible what's happening is that the default browser was actually changing somehow.

If that's not it, I'm at a loss and I think you might need to do more debugging. If you're  compiling everything with kde-builder, you're a fairly advanced person, and can check out what actual files on disk these apps point to. Looking at whether ~/.config/mimeapps.list changes on boot would be nice as well.
Comment 4 Parag W 2024-10-05 23:06:35 UTC
(In reply to Nate Graham from comment #3)
> The web browser entry on there is special, it actually tracks the default
> browser. When that changes, the icon changes too.
> 
> If you remove that entry and pin Firefox or Chromium specifically, it will
> be the exact app, not "whatever is the default web browser".
> 
> So it's possible what's happening is that the default browser was actually
> changing somehow.

I double checked that I was pinning the specific browser from Task manager but it is possible the swaparoo was still happening due to change in the default browser - I have now explicitly set Firefox as the default and the issue has not reoccurred - not sure if something fixed it or was just a one off - either way closing it since I can't reproduce it anymore. Thanks!