Bug 439552

Summary: Missing StartupWMClass Entries
Product: [Applications] okular Reporter: qoheniac
Component: generalAssignee: Okular developers <okular-devel>
Status: RESOLVED FIXED    
Severity: normal CC: aacid, jgrulich, ngompa13, qoheniac, rdieter
Priority: NOR    
Version First Reported In: 21.04.1   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description qoheniac 2021-07-06 11:32:27 UTC
SUMMARY
Okular's desktop files are missing the StartupWMClass entry and because of this multiple instances of these applications aren't grouped together in GNOME's dash.

STEPS TO REPRODUCE
1. Run GNOME Shell
2. Open multiple instances of Okular
3. Look at GNOME Dash

OBSERVED RESULT
GNOME Dash shows one icon per Okular instance

EXPECTED RESULT
GNOME Dash shows one Okular icon

SOFTWARE/OS VERSIONS
Fedora 34
GNOME Shell 40.2
KDE Framework 5.83.0
Qt 5.15.2

ADDITIONAL INFORMATION
Okular is the KDE application I use most but I saw missing StartupWMClass entries for other KDE applications too (e. g. KBibTeX). I also reported the bug downstream:
https://pagure.io/fedora-kde/SIG/issue/97
https://bugzilla.redhat.com/show_bug.cgi?id=1979498
Comment 1 Albert Astals Cid 2021-07-06 22:40:10 UTC
You'll should really go and bug Gnome's dash to not be so broken.

Anyhow https://invent.kde.org/graphics/okular/-/commit/d8845025f2e43836411a079c05c98a6a9507c1a0
Comment 2 qoheniac 2021-07-07 05:59:24 UTC
Thanks!