[BUG] [Claude Desktop / Linux] Left-click on the tray icon does nothing: main Tray has a context menu but no click handler (still present in 6.28899.2)

Open
#111,501 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
40/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
electron, javascript, linux
Domain
desktop-dev

Research direction

Unpack resources/app.asar from the shipped 6.28899.2 build and find where the main tray is constructed (new u.Tray(...) followed by setToolTip and setContextMenu) versus the per-artifact tray that calls .on("click", ...). Read the "Show App" menu item handler the click should reuse, then confirm nothing else attaches a listener to the main tray. Note the fix belongs in the Electron app's own sources, not this TypeScript CLI repository, and that #98678 was closed by a bot without an answer — check with a maintainer before starting.

Written by the indexing model from the issue text.

Description

invalid

Summary

On Linux, left-clicking the Claude Desktop tray icon has no effect. The window can only be shown through the right-click context menu ("Show App"). The expected behaviour, as with most tray applications on Linux desktops, is that a left click shows/raises the main window (ideally toggling show/hide).

This was already reported in #98678 (Claude Desktop 2.9939.4, Linux Mint / Cinnamon / X11), which was closed automatically as "not about Claude Code" with no answer on the substance. It still reproduces in 6.28899.2, now on KDE Plasma / Wayland, and another user confirmed it there on Ubuntu and Debian. Opening a new issue as that bot message suggests.

Steps to reproduce

  1. Start Claude Desktop on KDE Plasma (Wayland) with the tray icon enabled.
  2. Close or minimise the main window so the app keeps running in the tray.
  3. Left-click the tray icon.

Expected

The main window is shown and focused (or hidden if it was already visible).

Actual

Nothing happens. Right-click opens the context menu (Show App / Open Quick Entry / Quit), and "Show App" works.

Cause

In resources/app.asar (6.28899.2) the main tray icon is created with a tooltip and a context menu only:

Z9 = new u.Tray(u.nativeImage.createFromPath(i)), Z9.setToolTip(u.app.getName()), /* ... */ Z9.setContextMenu($9)

No listener is ever attached to that object: there is no Z9.on(...) anywhere in the bundle. On KDE Plasma the StatusNotifierItem host sends Activate on left click and opens the context menu only on right click, so the left click is silently dropped.

Two things in the same bundle suggest this is an omission rather than a design choice:

  • The per-artifact tray icons do register a handler: let n = new c.Tray(t); return n.on("click", ...).
  • The app ships this (currently disabled) balloon text: "Click the Claude icon in the system tray to reopen the app, or right-click to quit."

Registering a click handler on the main Tray that runs the same action as the "Show App" menu item should be enough.

Environment

  • Claude Desktop 6.28899.2 (Electron 45.3.3), launched with --ozone-platform=wayland
  • Arch Linux (rolling), x86_64, kernel 7.3.5 (xanmod)
  • KDE Plasma 6.8.3, KWin 6.8.3, Wayland session
  • libayatana-appindicator 0.6.1
  • Install method: AUR package claude-desktop 6.28899.2-1, unmodified PKGBUILD. The packaging differs from Debian's, but the contents are the same: the PKGBUILD downloads the official claude-desktop_6.28899.2_amd64.deb from downloads.claude.ai and extracts its data.tar.xz as is. The only replaced file is the /usr/bin/claude-desktop launcher script; app.asar and the Electron binary are byte-for-byte the ones shipped in the .deb, so the tray code path is the upstream one.

An official Arch package (requested in #96963) would remove this ambiguity for reports like this one.

Workaround

Right-click the tray icon → "Show App".

Dominant language
TypeScript
Stars
156k
Forks
25k
Avg merge
16h 19m
Merged PRs (30d)
5

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

  • No Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from anthropics/claude-code

All issues in anthropics/claude-code

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.