Skip to content

[Bug]: Tray icon on Linux has chome id for all Electron applications (AppIndicator/StatusNotifierItem) #40936

@pdf

Description

@pdf

Preflight Checklist

Electron Version

28.0.0

What operating system are you using?

Other Linux

Operating System Version

Arch Linux

What arch are you using?

x64

Last Known Working Electron version

22.x

Expected Behavior

For various desktop environments to function correctly, every registered AppIndicator must have a unique, stable ID attached to the StatusNotifierItem. Prior to the migration to StatusIconLinuxDbus implementation in #36333 the application name was used as the ID prefix.

Actual Behavior

All Electron applications use the same indicator ID value of chrome_status_icon_1, which breaks the functionality of desktop environments for managing tray icons like sorting, hiding, etc.

Testcase Gist URL

No response

Additional Information

See some examples of previous times this was fixed:

#5969
#15536 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    28-x-y29-x-ybug 🪲platform/linuxstale-exemptUsed to indicate that stale automation should not run. Must be accompanied by a comment for why

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions