Bug 402622

Summary: Krita desktop icon missing StartupWMClass
Product: [Applications] krita Reporter: Tommaso <tommaso.cucinotta>
Component: GeneralAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: minor    
Priority: NOR    
Version: 4.1.7   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: krita.desktop file working for me

Description Tommaso 2018-12-27 22:40:40 UTC
Created attachment 117137 [details]
krita.desktop file working for me

SUMMARY

When the Krita icon is added to the launcher in Ubuntu (gnome), and it is clicked, then a new icon is added dynamically to the pane, with the dot on its left showing the new icon as an active application.

With this patch that adds StartupWMClass, this is fixed, and now when I click on the Krita icon in the launcher, I just get a dot on its left, showing it as an active application.

STEPS TO REPRODUCE
1. add Krita to your favorites in Ubuntu/gnome
2. click on the just added Krita icon

OBSERVED RESULT

see that a new icon shows up in the launcher pane, with a dot on its left

EXPECTED RESULT

The very icon that I clicked should just get a dot on its left, to indicate that the application is active.

ADDITIONAL INFORMATION

Just confirmed that adding

  StartupWMClass=krita

at the bottom of the application .desktop file in

  /usr/share/applications/org.kde.krita.desktop

fixes the problem. You can also pull this tiny fix from

  https://github.com/tomcucinotta/krita/commit/b9a8369ca1bd2791c1fd89651f9eec4e0558e5b1

Thanks, and keep up with the great Krita masterpiece!
Comment 1 Halla Rempt 2018-12-28 15:40:50 UTC
Git commit 543760631356c3b1c2ad9d006c69a7eb928330ac by Boudewijn Rempt.
Committed on 28/12/2018 at 15:39.
Pushed by rempt into branch 'master'.

Apparently Gnome has problems figuring out that krita is krita
on its own and needs this hint.

M  +1    -0    krita/org.kde.krita.desktop

https://commits.kde.org/krita/543760631356c3b1c2ad9d006c69a7eb928330ac