Bug 1979498 - Missing StartupWMClass Entries
Summary: Missing StartupWMClass Entries
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: okular
Version: 34
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Than Ngo
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-07-06 08:21 UTC by qoheniac
Modified: 2021-07-09 09:24 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2021-07-09 09:23:56 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.