Bug 496383 - Icon with a dash in their name does display properly when referenced in a ".desktop" file
Summary: Icon with a dash in their name does display properly when referenced in a ".d...
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: general (other bugs)
Version First Reported In: git-stable-Plasma/6.2
Platform: Fedora RPMs Linux
: NOR minor
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-11-17 16:14 UTC by damien.teyssier
Modified: 2024-11-19 00:46 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description damien.teyssier 2024-11-17 16:14:30 UTC
SUMMARY
Icon with a dash in their name does display properly when referenced in a ".desktop" file.
A perfect example is when you install Proton Pass or Proton mail application. They both use icons with a dash in their name.
The icon would not display properly unless you remove the dash.

STEPS TO REPRODUCE
1. take 2 different icons
2. Name one ABC, name the other ABC-DEF
3. Reference the ABC-DEF in a .desktop file

OBSERVED RESULT
The icon displayed is not the correct one. it will display ABC whether you are in Dolphin, the Task Manager or the application launcher.

EXPECTED RESULT
See the icon referenced in the .Desktop file

SOFTWARE/OS VERSIONS
KDE Plasma Version: 5 and 6

ADDITIONAL INFORMATION
I notice this issue for a while before Plasma 6 was officially released. And Noticed it on Manjaro and Fedora
Comment 1 TraceyC 2024-11-19 00:46:44 UTC
Tested on git-master - I cannot reproduce the behavior reported
On 6.2.3 I only see the default icon with the task manager icon. It looks like what you're seeing was fixed. The fix will be present on your system likely when Plasma is updated on it to 6.3

To reproduce here's what I did:
Using a new custom .desktop file for an Obsidian vault, I get the same results with an icon with or without a dash (icon picked from picker or with Browse)
I also tested with Firefox

Result:
Dolphin: Chosen icon correctly shows next to the .desktop file
Task manager: On git-master, icon is the one I chose. On 6.2.3 the icon is the default Obsidian icon 
KRunner: Shows the chosen icon correctly

If the bug is still on your system when it updates to Plasma 6.3, feel free to re-open this bug report. Thanks!