Repository navigation
fix(linux): show the GAIA logo in the tray instead of a red square - #5273
Merged
Merged
Conversation
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
This was referenced Oct 17, 2026
8 of 14 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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)AppImage structural smokejob passes the new tray-icon check🔍 Technical details
assets/tray-icon.pngand@2x(Linux-only; Windows loadstray-icon.ico, macOS loadstray-iconTemplate.png) were single-colour(226,60,64)16/32 px PNGs. The path resolution was fine;assets/**/*is packed intoapp.asar.assets/icon.png, the same art as the Windows.ico._loadIconnow throws ifnativeImagedecodes an empty image. Before this, only a missing file threw.tests/electron/_helpers/tray-icon-png.cjsdecodes the PNG and asserts the size, transparent corners and at least 64 distinct colours. The Jest test andappimage-smoke.test.mjsboth use it.