Skip to content

fix(linux): show the GAIA logo in the tray instead of a red square - #5273

Merged
kovtcharov-amd merged 1 commit into
mainfrom
fix/appimage-tray-icon
Oct 17, 2026
Merged

kovtcharov-amd merged 1 commit into
mainfrom
fix/appimage-tray-icon

Conversation

@kovtcharov-amd

Copy link
Copy Markdown
Collaborator

On Linux the desktop app's tray icon was a red square, from both the AppImage and the .deb, because the Linux tray asset itself was a flat red placeholder rather than the logo. It is now the GAIA logo, sized so KDE and GNOME panels scale it down cleanly. Windows and macOS tray icons are unchanged. The AppImage structural smoke now pulls the icon out of the packaged app and fails if it is missing or a flat square, so a placeholder cannot ship again.

Test plan

  • cd tests/electron && npx jest: 29 suites pass. The new asset checks fail against the old red PNGs.
  • cd src/gaia/apps/webui && npm ci && npm run build && npm test (847 Vitest tests pass)
  • CI: the Build Desktop Installers AppImage structural smoke job passes the new tray-icon check
  • Launch the AppImage on KDE and GNOME and see the logo in the tray
🔍 Technical details
  • assets/tray-icon.png and @2x (Linux-only; Windows loads tray-icon.ico, macOS loads tray-iconTemplate.png) were single-colour (226,60,64) 16/32 px PNGs. The path resolution was fine; assets/**/* is packed into app.asar.
  • Regenerated them at 32/64 px from assets/icon.png, the same art as the Windows .ico.
  • _loadIcon now throws if nativeImage decodes an empty image. Before this, only a missing file threw.
  • tests/electron/_helpers/tray-icon-png.cjs decodes the PNG and asserts the size, transparent corners and at least 64 distinct colours. The Jest test and appimage-smoke.test.mjs both use it.

The Linux tray icon was a flat red placeholder: tray-icon.png and its @2x
variant were 16/32 px solid-colour squares, so every Linux desktop (AppImage
and .deb) drew a red square. They are now the GAIA logo, rendered at 32/64 px
from the app icon so 22-24 px panels downscale it cleanly. Windows (.ico) and
macOS (template PNG) assets are untouched.

The tray now also fails loudly when an icon file decodes to an empty image,
and the AppImage structural smoke pulls the icon out of app.asar and checks
it is the logo, not a flat square.

Closes #5268
@github-actions github-actions Bot added the tests Test changes label Oct 17, 2026
@kovtcharov-amd
kovtcharov-amd merged commit 79c9e4d into main Oct 17, 2026
55 of 56 checks passed
@kovtcharov-amd
kovtcharov-amd deleted the fix/appimage-tray-icon branch October 17, 2026 06:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tests Test changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant