Bug 1979498

Summary: Missing StartupWMClass Entries
Product: [Fedora] Fedora Reporter: qoheniac
Component: okularAssignee: Than Ngo <than>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 34CC: ariels.boiardi, jreznik, kde-sig, qoheniac, rdieter, than
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-07-09 09:23:56 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description qoheniac 2021-07-06 08:21:09 UTC
Description of problem:
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.

Version-Release number of selected component (if applicable):
21.04.1

How reproducible:
Follow the steps below.

Steps to Reproduce:
1. Install Fedora 34
2. Install Okular
3. Open multiple instances of Okular
4. Look at GNOME's dash

Actual results:
Multiple Okular icons in GNOME's dash

Expected results:
One Okular icon in GNOME's dash

Additional info:
I also mentioned this issue here: https://pagure.io/fedora-kde/SIG/issue/97
And I also filed a bug report upstream here: https://bugs.kde.org/show_bug.cgi?id=439552

Comment 1 Ariel S. 2021-07-09 09:14:05 UTC
I am experiencing this problem too on Fedora 33.

Adding

StartupWMClass=okular 

in the file /usr/share/applications/org.kde.okular.desktop solves the issue.

I checked https://invent.kde.org/graphics/okular/-/blob/master/shell/org.kde.okular.desktop, which I guess is the source fo the *.desktop and the StartupWMClass attribute seems to be present.

Comment 2 qoheniac 2021-07-09 09:23:56 UTC
Yes, I also opened an issue over at KDE (see the last link in my post above) and they added it to the .desktop file. So it is only a matter of time until it reaches Fedora's repository and I will close the issue here.