| Ticket UUID: | b43668246aad18d93df3e1551cac7d38a9beb53c | |||
| Title: | Wayland branch: tk systray create fails without a StatusNotifierWatcher, and use after free after destroying the icon | |||
| Type: | Bug | Version: | wayland | |
| Submitter: | serhiy.storchaka | Created on: | 2026-10-15 11:42:43 | |
| Subsystem: | 99. Other | Assigned To: | kevin_walzer | |
| Priority: | 5 Medium | Severity: | Important | |
| Status: | Closed | Last Modified: | 2026-11-10 01:33:32 | |
| Resolution: | Fixed | Closed By: | kevin_walzer | |
| Closed on: | 2026-11-10 01:33:32 | |||
| Description: |
tk systray create fails with "failed to register StatusNotifierItem" when no StatusNotifierWatcher is running (no tray, or GNOME without the AppIndicator extension). On X11 the icon is created and docked when a tray appears. All systray.test tests and sysnotify-1 fail in such an environment. Also:
Proposed fix in branch wayland-systray-no-watcher: a failed initial registration is not an error (the item is registered when a watcher appears, as the code already does), the timers and the idle callback are cancelled on destroy, and the message of Tk_GetImage() is kept. | |||
| User Comments: |
kevin_walzer added on 2026-11-10 01:33:32:
I re-merged wayland-systray-session-bus after verifying the fix in the test suite. Merging wayland-systray-no-watcher was no-op so I am assuming that fix is already contained in wayland-systray-session-bus. serhiy.storchaka added on 2026-11-09 13:47:17: Proposed change in branch wayland-systray-session-bus [3f63c152ba]:
kevin_walzer added on 2026-10-17 01:02:10: This seems a very useful fix. Merging. | |||
Home
Timeline
Branches
Tags
Forum
Tickets
Download
Wiki