Problem
trayIconsManager.js:93 calls Util.Logger.warning(), but logger.js only defines debug, warn, error and critical. The catch block throws a TypeError of its own, so the intended diagnostic never reaches the log.
onTrayIconRemoved(_tray, icon) {
try {
const [trayIcon] = IndicatorStatusIcon.getTrayIcons().filter(i => i.icon === icon);
trayIcon.destroy();
} catch (e) {
Util.Logger.warning(`No icon container found for ${icon.title} (${icon})`);
}
}
When nothing matches the filter, trayIcon is undefined, .destroy() throws, and the handler meant to explain that throws too. The failure is silent apart from the misleading TypeError.
Observed
One line per boot in the journal, on both of my machines:
JS ERROR: TypeError: Util.Logger.warning is not a function
Fix
Util.Logger.warn. PR #638 contained this one word change plus a null guard, but its author closed it without discussion and master still reads warning.
Environment
- Extension version 64
- GNOME Shell 50.2, Wayland
- NixOS 26.11, two machines, both affected
Problem
trayIconsManager.js:93callsUtil.Logger.warning(), butlogger.jsonly definesdebug,warn,errorandcritical. The catch block throws aTypeErrorof its own, so the intended diagnostic never reaches the log.When nothing matches the filter,
trayIconisundefined,.destroy()throws, and the handler meant to explain that throws too. The failure is silent apart from the misleadingTypeError.Observed
One line per boot in the journal, on both of my machines:
Fix
Util.Logger.warn. PR #638 contained this one word change plus a null guard, but its author closed it without discussion and master still readswarning.Environment