Ximi1970 / systray-x

SysTray-X: A system tray extension for Thunderbird. Needs both the addon AND the companion app installed to work. Will not work with TB flatpaks or snaps.
Mozilla Public License 2.0
214 stars 14 forks source link

Can't close Thunderbird from the tray #123

Closed lgbaldoni closed 2 years ago

lgbaldoni commented 2 years ago

Describe the bug Exiting the app from the tray closes only the icon and not Thunderbird

To Reproduce Right-click on the tray icon and select Exit

Expected behavior The Thunderbird application to close as well

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context Possibly related to https://github.com/Ximi1970/systray-x/issues/120 ?

Ximi1970 commented 2 years ago

Is the titlebar disabled?

Ximi1970 commented 2 years ago

I cannot repliicate this one (yet)...

lgbaldoni commented 2 years ago

Is the titlebar disabled?

Where do I check?

BTW, after a few open and close the second icon is back.

Ximi1970 commented 2 years ago

Also did not see the double icon (yet) but seems that it is caused when the close is badly intercepted.

Titlebar: In Tb -> Open the menu -> View -> Toolbars -> Toolbat Layout... -> Left bottom, checkbox Titlebar. Debug: In Tb -> Open the menu -> Tools -> Developer Tools -> Error console And / or: Tb -> Open the menu -> Tools -> Developer Tools -> Debug Addons -> Select the "Inspect of SysTray-X -> console tab

lgbaldoni commented 2 years ago

Titlebar is on. I couldn't reproduce this anymore but now I'm stuck with two icons.

This is what I see in the debugging console, no apparent error in the extension-specific console.

Plus, I'm now stuck with two icons. Could it be switching back and forth between 0.8.0 and 0.9.1 is leaving cruft? Should I try a clean profile?

Ximi1970 commented 2 years ago

I think I found the problem and can easily generate the double icon. Disabling (from the TB extension page) / closing the addon is not oke. It triggers an exception in the shutdown boostrap. Will have to look into that.