Skip to content

fix: set StartupWMClass in the Linux desktop entry - #1393

Merged
tw93 merged 1 commit into
tw93:mainfrom
drakeo338:claude/1388-fix
Sep 25, 2026
Merged

tw93 merged 1 commit into
tw93:mainfrom
drakeo338:claude/1388-fix

Conversation

@drakeo338

Copy link
Copy Markdown
Contributor

Fixes #1388.

Pake's Linux .desktop entry didn't set StartupWMClass, so docks like GNOME's that match a running window to its launcher by that field (or by the entry's basename as a fallback) couldn't find a match: the window reports pake-<name> as its WM_CLASS/app_id while the entry is com.pake.<name>.desktop. The dock then falls back to a generic icon and no pinned entry works correctly. This adds StartupWMClass=<binary name> to the generated entry so the two line up, plus a unit test covering it.

Docks such as GNOME's match a running window to its .desktop entry by
StartupWMClass or, failing that, by the entry's basename. Pake installs
com.pake.<name>.desktop but the window reports the binary name
(pake-<name>) as its WM_CLASS and Wayland app_id, so neither matched and
the dock showed a generic icon with no pinned entry. Emit
StartupWMClass=<binary name> so the two line up. tw93#1388
@tw93
tw93 merged commit 92b3d27 into tw93:main Sep 25, 2026
@tw93

tw93 commented Sep 25, 2026

Copy link
Copy Markdown
Owner

@drakeo338 Thanks for tracking down the WM_CLASS mismatch, merged. The generated desktop entry now carries the same StartupWMClass line the #1388 reporter had to add by hand, so docks can match the running window to its launcher.

It ships in the next pake-cli release; apps need a rebuild with that version to pick it up.

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.

[Bug] pake-youtube icon doesn't load properly in GNOME's Dock!

2 participants