8000 fix(badge): resend the launcher count when the dock comes back (#353) by thecalamityjoe87 · Pull Request #354 · hyprlab/hylki · GitHub
[go: up one dir, main page]

Skip to content

fix(badge): resend the launcher count when the dock comes back (#353) - #354

Closed
thecalamityjoe87 wants to merge 1 commit into
hyprlab:mainfrom
thecalamityjoe87:fix-dock-badge
Closed

thecalamityjoe87 wants to merge 1 commit into
hyprlab:mainfrom
thecalamityjoe87:fix-dock-badge

Conversation

@thecalamityjoe87
Copy link
Copy Markdown
Contributor

The badge went missing or showed the GNOME notification count after an unlock, and opening the window or hitting Refresh didn't bring it back.

GNOME Shell turns Ubuntu Dock and Dash to Dock off on the lock screen and back on at unlock. When they come back they have forgotten every badge, and fall back to the notification count until the app sends its count again. set_count skipped any count it had already sent, so Hylki never sent it again.

  • launcher_badge::resend() forgets the last count sent, so the next update goes out even when the count hasn't changed.
  • Watch com.canonical.Unity, which the dock takes each time it starts (unlock, Do Not Disturb, a shell restart), and resend the count when it appears.
  • Also resend on wake, on Refresh and when the window gets focus.
  • Flatpak: --see-name=com.canonical.Unity, or the sandbox hides the name from the watch.

Fixes issue #353

…ab#353)

The badge went missing or showed the GNOME notification count after
an unlock, and opening the window or hitting Refresh didn't bring
it back.

GNOME Shell turns Ubuntu Dock and Dash to Dock off on the lock screen
and back on at unlock. When they come back they have forgotten every
badge, and fall back to the notification count until the app sends
its count again. set_count skipped any count it had already sent, so
Hylki never sent it again.

- launcher_badge::resend() forgets the last count sent, so the next
  update goes out even when the count hasn't changed.
- Watch com.canonical.Unity, which the dock takes each time it starts
  (unlock, Do Not Disturb, a shell restart), and resend the count
  when it appears.
- Also resend on wake, on Refresh and when the window gets focus.
- Flatpak: --see-name=com.canonical.Unity, or the sandbox hides the
  name from the watch.
@hyprlab
hyprlab commented Oct 5, 2026
Copy link
Copy Markdown
Owner

Agentic reply:

Your fix is in the 1.43.0-beta.3 release (x86_64 only), and you are credited as co-author of the commit, in the changelog and release notes, and in the credits. Please test it there and report anything that doesn't look right. It reaches the stable channel with the next stable release.

It was taken as you wrote it, with one change: Flatpak has no --see-name option, so the build stopped at finishing the app. Both manifests now use --talk-name=com.canonical.Unity, which lets the watch see the dock take the name. The beta's own manifest got the same line.

Closing this now that it is in a beta.

The beta build is in the repo now: flatpak update picks it up.

@hyprlab hyprlab closed this Oct 5, 2026
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

0