Repository navigation
fix(v3/linux): always advertise the tray Menu property so a tray created after Run is not dropped - #6284
Conversation
…ted after Run is not dropped
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
WalkthroughThe Linux system tray property specification now includes the ChangesLinux system tray
Priority: ➖ Normal Estimated code review effort: 1 (Trivial) | ~3 minutes Change: Bug fix Suggested reviewers: Merge Risk: ⚪ Minimal · up to
|
There was a problem hiding this comment.
🟢 Approval recommended
The narrow change matches the existing dbusmenu export, with no unresolved findings.
No open issues 🎉
What changed in this PR
Fixes Linux trays created after the application starts being dropped by hosts when no menu is configured yet.
Changes:
- Always advertises the
Menuproperty, matching the existing unconditional dbusmenu export. - Documents why the property must exist before
SetMenu.
| File | Description |
|---|---|
v3/pkg/application/systemtray_linux.go |
Removes the menu-presence guard from the Menu property. |
Review effort: Balanced
… advertise the tray Menu property so a tray created after Run is not dropped
…ted after Run is not dropped (wailsapp#6284)
Description
createPropSpecadds the StatusNotifierItemMenuproperty only whens.menuis already set. A system tray created after the app is running registers with the host straight away, before the app callsSetMenu, so its item is exported withoutMenu. Hosts such as GNOME's AppIndicator extension drop an item whoseMenuproperty is missing, and the tray never appears.The dbusmenu object is exported at
menuPathwhether or not a menu has been set, so the property is now always advertised.Type of change
How Has This Been Tested?
go build ./pkg/applicationand the package's tray tests (go test ./pkg/application -run Tray) pass.Fedora Linux 44 (Workstation Edition), amd64, GNOME on Wayland.
Test Configuration
Tests run with Go 1.26.9 against
masterat 73242d1.wails3 doctoron the same machine (its Go line is the toolchain the CLI was built with):wails3 doctor
Checklist:
website/src/pages/changelog.mdxwith details of this PR (v3 changelog entries are added automatically)Summary by CodeRabbit