Skip to content

Fix WM_CLASS for correct icon matching in docks and taskbars - #1044

Open
newman2x wants to merge 1 commit into
linuxmint:masterfrom
newman2x:fix-wmclass-icon
Open

newman2x wants to merge 1 commit into
linuxmint:masterfrom
newman2x:fix-wmclass-icon

Conversation

@newman2x

@newman2x newman2x commented Mar 26, 2026

Copy link
Copy Markdown

.

print(sys.exc_info()[0])

setproctitle.setproctitle("mintUpdate")
GLib.set_prgname("mintupdate")

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, can you move this to maybe just after the import gi call on line 7:

# system imports
import os
import sys
import gi

from gi.repository import GLib
GLib.set_prgname("mintupdate")

import time
...

(and remove the later GLib import)

This way, both res_class and res_name are updated. If it's performed after the Gtk import, only res_name can be updated.

Doing this allows you to eliminate the matching desktop file change - I'd rather only have this done in one place.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants