Bug 402622 - Krita desktop icon missing StartupWMClass
Summary: Krita desktop icon missing StartupWMClass
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: General (show other bugs)
Version: 4.1.7
Platform: Ubuntu Linux
: NOR minor
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-12-27 22:40 UTC by Tommaso
Modified: 2018-12-28 15:40 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
krita.desktop file working for me (4.04 KB, application/x-desktop)
2018-12-27 22:40 UTC, Tommaso
Details

Note You need to log in before you can comment on or make changes to this bug.
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