Skip to content

fix(linux): log the AppImage launcher and tray host result on every path - #7156

Merged
kovtcharov-amd merged 2 commits into
amd:mainfrom
kovtcharov:fix/linux-log-tray-and-launcher-path
Nov 11, 2026
Merged

kovtcharov-amd merged 2 commits into
amd:mainfrom
kovtcharov:fix/linux-log-tray-and-launcher-path

Conversation

@kovtcharov

Copy link
Copy Markdown
Contributor

Before this change, the Fedora run that #7138 asks for couldn't show which path GAIA took when ✕ was clicked. The main log stayed silent when a tray host was found, and also when the AppImage launcher was already current, was left alone, or came from a package install. The tester would have had to rebuild that state by hand. Now both checks write one line on every outcome, so the log alone tells us whether ✕ should hide or minimize, and why.

This only adds logging; what ✕ does is unchanged. The issue stays open until the real Fedora run is attached.

Refs #7138
Replaces #7141, which GitHub Actions opened, so the full CI never ran on it. Same commit.

Test plan

  • npx jest in tests/electron passes (61 suites, including a new test that logs both tray-host answers). Also run on Fedora 44 merged with fix(linux): show GAIA once in the app grid and open its window on Wayland #7149 and fix(desktop): don't report a renderer's clean exit as a crash #7155: 62 suites, 1,592 tests pass
  • python util/lint.py --all passes. Two Python checks (import validation, tool descriptions) failed in this job, on files this change doesn't touch.
  • python -m pytest tests/unit/ -x passes. It couldn't run in this job because a dev dependency (responses) wasn't installed. This change has no Python.
  • On Fedora Workstation (GNOME, extensions off), start the AppImage, then run grep -E '\[tray\]|AppImage launcher' ~/.gaia/electron-main.log. Expect one AppImage launcher <status>: <path> line and one [tray] line.

⚠️ Needs manual validation: the automated checks confirm there's no regression, but they can't run a packaged AppImage. A maintainer should run the last step on a real Fedora GNOME desktop before merging.

🔍 Technical details
  • main.cjs: logs launcher.status and entry for every status except not-appimage. Before, only written was logged; current, kept-existing and package-installed were silent.
  • services/tray-manager.cjs setHost: logs when a host is available too. The wording doesn't claim that ✕ hides, because that still depends on the minimize-to-tray setting.
  • This is the "self-reporting" follow-up suggested in the issue's first comment.

The main log said nothing when the launcher was already current, kept, or
package-installed, or when a tray host was found, so a Fedora run of the
close path could not show which branch GAIA took.

Refs amd#7138
@github-actions

Copy link
Copy Markdown
Contributor

Verdict: Approve

This adds two log lines so a Fedora run can show which path GAIA took when ✕ is clicked: whether a tray icon host was found, and what happened to the AppImage launcher. Neither check stays silent on any outcome any more. Nothing the user sees or does changes, and the logging is correct on every path I traced.

Real-world evidence

N/A: the evidence harness produced no bundle for this change, and a packaged AppImage can't run on this runner. The verdict rests on static review and the Jest test the PR adds. As the PR description says, the real proof is the Fedora GNOME grep step in the test plan, which a maintainer still has to run before #7138 can close.

🔍 Technical details

Issues found

None blocking.

  • 🟢 The launcher log line in main.cjs:1237 has no test, unlike the tray line. It is a one-line change, and every status other than not-appimage returns entry (appimage-launcher.cjs:92–113), so the log can never print undefined. Optional.

Checks run

  • Sibling paths: setHost has one caller (main.cjs:879, once per window after probeTrayHost), so the new "available" line can't flood the log.
  • Docs drift: no doc quotes the old Wrote the AppImage launcher text, so nothing is stale.
  • Missed-bug classes: the change is logging only. No new waits, no shared state, and the status text matches what happened (Dishonest status). The "available" line says ✕ follows the minimize-to-tray setting and doesn't claim it hides, which is accurate.

Strengths

  • The new test.each covers both host answers and restores the console.log spy in finally.
  • The scope is tight: two log statements and one test, with no change to what ✕ does.

@kovtcharov-amd
kovtcharov-amd added this pull request to the merge queue Nov 11, 2026
Merged via the queue into amd:main with commit f4fa342 Nov 11, 2026
106 checks passed
@kovtcharov-amd
kovtcharov-amd deleted the fix/linux-log-tray-and-launcher-path branch November 11, 2026 18:13
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.

2 participants