Bug 470455 - Override Desktop entries sometimes get applied, sometimes dont
Summary: Override Desktop entries sometimes get applied, sometimes dont
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Task Manager and Icons-Only Task Manager widgets (show other bugs)
Version: 5.27.5
Platform: Fedora RPMs Linux
: NOR minor
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-30 15:48 UTC by Henning
Modified: 2025-01-09 22:10 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Henning 2023-05-30 15:48:44 UTC
What I do: I have some apps where I dont like the icon.

Or I have another appstarting starting a specific Firefox profile.

Or things like this.

What I do is copy the appstarter of the original to ~/.local/share/applications/x.desktop and it shows up.

AFAIK normally that appstarter should override the system one, as kind of the users power. 

What happens though, is that Firefox often doesnt follow that. Sometimes it still shows the default icon, while the pined custom one is then a duplicate.

I can imagine this is due to how the processes are identified, its not a Flatpak-only problem though, as this happens on RPM firefox too.

My proposal is to somehow fix app detection, so that the icon doesnt reset all the time but actually respects the metadata stated in the appstarters / Desktop entries.

Specified App:
firefox-113.0.1-4.fc38.x86_64

--- Software ---
OS: Fedora Linux 38.20230530.0 (Kinoite)
KDE Plasma: 5.27.5
KDE Frameworks: 5.106.0
Qt: 5.15.9
Kernel: 6.2.15-300.fc38.x86_64
Compositor: wayland

--- Hardware ---
CPU: AMD Ryzen 5 PRO 3500U w/ Radeon Vega Mobile Gfx
RAM: 13.5 GB
GPU: AMD Radeon Vega 8 Graphics
Video memory: 2048MB
Comment 1 Nate Graham 2023-06-05 04:28:48 UTC
> I can imagine this is due to how the processes are identified
Yep.

> What I do is copy the appstarter of the original to ~/.local/share/applications/x.desktop and it shows up.
After you do this, do you remember to run `kbuildsycoca5` in a terminal window? If not, does the problem get fixed if you do?

If not, does the problem get fixed if you override the icon using the GUI app kmenuedit, rather than manually copying a .desktop file around?
Comment 2 Henning 2023-06-07 14:07:59 UTC
I didnt know of that command. Kmenuedit doesnt work, as the appstarters are from Flatpaks 99% and these are symlinked.

Running the command did not fix my firefox displaying two icons for example, which is the /usr/share/icons/ and the ~/.local/share/icons one
Comment 3 Nate Graham 2025-01-09 22:10:03 UTC
This should work as expected 100% of the time starting in Plasma 6.3