Skip to content

feat: re-add app.setBadgeCount and win.setProgressBar for Linux - #52739

Merged
MarshallOfSound merged 1 commit into
electron:mainfrom
mitchchn:restore-linux-badge-count
Aug 17, 2026
Merged

MarshallOfSound merged 1 commit into
electron:mainfrom
mitchchn:restore-linux-badge-count

Conversation

@mitchchn

@mitchchn mitchchn commented Aug 9, 2026 •

Copy link
Copy Markdown
Member

Description of Change

Restores the APIs app.setBadgeCount and win.setProgressBar to Linux using a pure D-Bus API. The previous implementation was removed in #51649 because it depended on libunity, an obsolete and unmaintained library.

Resolves #51668.

Example in KDE Plasma on Ubuntu (Kubuntu):

image

Checklist

Release Notes

Notes: Restored app.setBadgeCount and win.setProgressBar for Linux. These APIs now support any dock or taskbar which implements the LauncherEntry D-Bus API, and they no longer require libunity.

@electron-cation electron-cation Bot added the new-pr 🌱 PR opened recently label Aug 9, 2026
@deepak1556 deepak1556 added semver/minor backwards-compatible functionality target/43-x-y PR should also be added to the "43-x-y" branch. target/44-x-y PR should also be added to the "44-x-y" branch. labels Aug 11, 2026
Comment thread shell/browser/linux/launcher_entry.cc Resolved
@mitchchn

Copy link
Copy Markdown
Member Author

Fun fact about this PR, it doesn't just restore these APIs, it allows them to work in distributions which do not ship libunity (including all Arch-based distros).

@MarshallOfSound

Copy link
Copy Markdown
Member

Heads up: Windows CI builds moved to new runners on Monday and the old ones have now been removed. This branch predates that, so its Windows build jobs still point at the old runners and will sit queued forever if CI runs again. Rebasing on main (or "Update branch") picks up the change, nothing else needed.

@mitchchn
mitchchn force-pushed the restore-linux-badge-count branch from d0341c5 to 15dfc60 Compare August 13, 2026 18:32

@codebytere codebytere left a comment

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.

API LGTM

@electron-cation electron-cation Bot removed the new-pr 🌱 PR opened recently label Aug 16, 2026

@MarshallOfSound MarshallOfSound left a comment

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.

API LGTM

@MarshallOfSound
MarshallOfSound merged commit 37f44ca into electron:main Aug 17, 2026
84 checks passed
@release-clerk

release-clerk Bot commented Aug 17, 2026

Copy link
Copy Markdown

Release Notes Persisted

Restored app.setBadgeCount and win.setProgressBar for Linux. These APIs now support any dock or taskbar which implements the LauncherEntry D-Bus API, and they no longer require libunity.

@trop

trop Bot commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

I was unable to backport this PR to "43-x-y" cleanly;
you will need to perform this backport manually.

@trop trop Bot added needs-manual-bp/43-x-y and removed target/43-x-y PR should also be added to the "43-x-y" branch. labels Aug 17, 2026
@trop

trop Bot commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

I have automatically backported this PR to "44-x-y", please check out #52895

@trop trop Bot added in-flight/44-x-y and removed target/44-x-y PR should also be added to the "44-x-y" branch. labels Aug 17, 2026
@trop

trop Bot commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

@VerteDinde has manually backported this PR to "43-x-y", please check out #52948

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

Labels

45-x-y api-review/approved ✅ merged/44-x-y PR was merged to the "44-x-y" branch. semver/minor backwards-compatible functionality

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

Support badge count/progress bars on Linux taskbar icons

4 participants