Public bug reported:

When two Electron/Chromium-based apps with tray icons run at the same
time (here: Claude Desktop 6.28899.2 and ChatGPT Desktop), Unity shows
the same picture for both indicators: the icon of the app that
registered first.

Each Chromium app writes its own tray icon to a separate temporary
directory, but always under the same file name, and reports it as
IconThemePath + IconName. GetApplications shows two entries with
identical icon names and different paths:

('status_icon_0', 2, ':1.216', '/org/chromium/DbusMenu', 
'/tmp/org.chromium.Chromium.gFDGHV', '', '', '', 'chrome_status_icon_1', '')
('status_icon_0', 5, ':1.243', '/com/canonical/dbusmenu', 
'/tmp/org.chromium.Chromium.Z0wFhP', '', '', '', 'Claude_status_icon_1', '')

The two PNG files differ (checked), yet both indicators show the first
one. It looks like each indicator's IconThemePath is appended to the
shared default GtkIconTheme, so the lookup by name always resolves to
the first matching directory instead of the indicator's own path.

Apps that pass an absolute file path as the icon name (e.g. Qt's
/run/user/1000/qt-trayicon-*.png) are not affected.

Steps to reproduce:
1. Start two Electron apps that use a tray icon (both launched with 
XDG_CURRENT_DESKTOP=GNOME; without it the tray icon is not shown at all).
2. Both indicators appear in the panel with the same image.

Expected: each indicator uses the icon from its own IconThemePath.

Versions: indicator-application 12.10.1+19.04.20190308.1-0ubuntu5,
unity-services 7.7.0+23.04.20230222.2-0ubuntu7.

ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: indicator-application 12.10.1+19.04.20190308.1-0ubuntu5
ProcVersionSignature: Ubuntu 6.8.0-151.151-generic 6.8.12
Uname: Linux 6.8.0-151-generic x86_64
ApportVersion: 2.28.3-0ubuntu0.1
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: Unity:Unity7:ubuntu
Date: Sat Nov 21 13:23:27 2026
InstallationDate: Installed on 2024-01-13 (1043 days ago)
InstallationMedia: Ubuntu Unity 22.04
SourcePackage: indicator-application
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: indicator-application (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug noble

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2175460

Title:
  Tray icons of different Electron apps collide: both show the same
  image (icon lookup by name across shared search paths)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/indicator-application/+bug/2175460/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to