Skip to content

chore!: remove Unity service and Unity-specific APIs - #51649

Merged
ckerr merged 1 commit into
electron:mainfrom
mitchchn:remove-unity
May 20, 2026
Merged

ckerr merged 1 commit into
electron:mainfrom
mitchchn:remove-unity

Conversation

@mitchchn

@mitchchn mitchchn commented May 15, 2026 •

Copy link
Copy Markdown
Member

Description of Change

For Electron to maintain a high level of support for Linux, it needs to focus on Linux as it exists today. This PR removes the Unity service, three APIs for Unity, and other branching code and documentation that concern Unity.

Electron does not launch on Ubuntu 17.04, the last version that included Unity. The most recent LTS to use Unity was 16.04, from early 2016. That version stopped receiving standard support from Canonical in 2021, and lost expanded security maintenance in April 2026. By version 18.04 LTS, Ubuntu had fully switched to GNOME.

None of the Unity code has been tested in CI for years. On the other hand, legacy code for Unity can actually harm the experience for all Linux users, e.g. #48490.

While the Unity project technically still exists, it is a non-factor in usage share: https://commandlinux.com/statistics/linux-desktop-environments/. More importantly, Electron cannot invest into any individual desktop environment on Linux. Even the most popular ones (GNOME and KDE) do not have APIs written specifically for them. The modern approach is to support Freedesktop standards, which are adopted by all environments and are usually assisted by upstream work in Chromium.

Removing support for Unity also does not mean that Electron apps will stop working on Unity for people who still wish to use it on more modern Linux distributions, only that apps won't have unique behaviors which wouldn't work in GNOME, for example. This will make apps work more consistently for users and developers. I hope the deprecation notice is self explanatory:

Removed: Unity desktop environment support on Linux

Unity has not been the default desktop environment in Ubuntu (LTS) since version 16.04, which is not supported by current versions of Electron. The deprecation does not
prevent Electron from running on Unity if it is installed in a newer distribution, but it will no longer offer unique functionality. In general, Electron supports
modern Freedesktop standards on Linux rather than APIs which only work in specific environments.

One API has been removed: app.isUnityRunning(). Some Unity-specific APIs no longer function on Linux, but remain supported on other platforms:

  • app.setBadgeCount(count) and app.badgeCount macOS
  • BaseWindow.setProgressBar(progress) and BrowserWindow.setProgressBar(progress) Windows macOS.

Checklist

Release Notes

Notes: Removed support for the Unity desktop environment on Linux. (See breaking changes.)

@mitchchn
mitchchn requested a review from a team as a code owner May 15, 2026 17:18
@electron-cation electron-cation Bot added the new-pr 🌱 PR opened recently label May 15, 2026
@mitchchn
mitchchn force-pushed the remove-unity branch 3 times, most recently from bd8506a to 774b4ab Compare May 15, 2026 17:54
@ckerr
ckerr self-requested a review May 15, 2026 18:11
ckerr
ckerr previously approved these changes May 15, 2026

@ckerr ckerr 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.

Removing Unity support now that 26.04 is out seems reasonable.

Comment thread shell/browser/browser_linux.cc Resolved
ckerr

This comment was marked as duplicate.

@ckerr
ckerr dismissed their stale review May 15, 2026 20:26

That was supposed to be "review with comment", not "review with approve", mostly because of the inheritance nitpick 😃

@mitchchn
mitchchn requested a review from ckerr May 16, 2026 16:12
@nikwen nikwen changed the title chore: remove Unity service and Unity-specific APIs chore!: remove Unity service and Unity-specific APIs May 18, 2026

@jkleinsc jkleinsc 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

@ckerr ckerr 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

@ckerr
ckerr merged commit 675f9fc into electron:main May 20, 2026
129 of 131 checks passed
@release-clerk

release-clerk Bot commented May 20, 2026

Copy link
Copy Markdown

Release Notes Persisted

Removed support for the Unity desktop environment on Linux. (See breaking changes.)

@zquestz

zquestz commented Aug 7, 2026 •

Copy link
Copy Markdown

The badges and hooks in this worked for KDE, GNOME, and many docks... not just in Unity. =\

There is no Freedesktop equivalent, as everyone actually adopted these for status badges.

@jtojnar jtojnar mentioned this pull request Oct 5, 2026
3 of 13 tasks
hesiod added a commit to hesiod/nixpkgs that referenced this pull request Oct 10, 2026
libunity used to be used for notification features until Electron 44.
See electron/electron#51649 for the upstream removal PR.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

No open projects
Status: No status

Development

Successfully merging this pull request may close these issues.

5 participants