Skip to content

[Bug]: click event on Tray Icon is broken in Linux #37112

Description

@srilakshmikanthanp

Preflight Checklist

Electron Version

22.0.2

What operating system are you using?

Ubuntu

Operating System Version

Ubuntu 22.04.1 LTS

What arch are you using?

x64

Last Known Working Electron version

No response

Expected Behavior

I created a tray icon, added the context menu, and registered for a click event. when we left-click the icon it should fire the click event when right click the icon it should show the context menu.

Actual Behavior

I created a tray icon, added the context menu, and registered for a click event. when we click the icon it shows the context menu regardless of the type of click (right or left).

Testcase Gist URL

No response

Additional Information

Steps to reproduce:

On Windows:

  • it is working perfectly on windows platforms

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions