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
213 stars 15 forks source link

Since release 0.9.4, systray-x on Windows 11 doesn't work. #153

Closed giwrgosmant closed 10 months ago

giwrgosmant commented 1 year ago

Describe the bug I've already reported it here, but seems for other platforms the app works. However in Windows 11 it doesn't work properly and so I open this ticket specific for Windows. I mean the installation works ok now, (the path changed to C:\Program Files instead of User/AppData tho) and the extension appears in Thunderbird to enable it. However, upon enable it doesn't work at all, no icon on tray and you can't close the window of Thunderbird with (X) only to minimize it with the minimize button. The only version that works ok for now is 0.9.3 with the workaround you wrote here.

To Reproduce

  1. Remove the previous version of systray-x addon from Thunderbird.
  2. Close Thunderbird.
  3. Uninstall and remove previous version of the app. (Search also if any remained folder exist and delete it)
  4. Install new version of the app, open Thunderbird and enable the addon.
  5. There is no tray icon and you can't close the Thunderbird (X).

Expected behavior It should have icon in the tray and the Thunderbird app to be able to close (minimize) it with X button.

Desktop (please complete the following information):

Ximi1970 commented 10 months ago

Did you install the correct version of SysTray-X? You are using TB 64bit and you need to install the 64bit version of SysTray-X. If you install the 32bit version it will only work with TB 32bit. TB 64bit will show the addon but will not start the companion app and the close button will do nothing. The 64bit version of SysTray-X will work with both TB 32bit and 64bit.

Tested again with 0.9.5 and the latest git, no problems found.

Ximi1970 commented 10 months ago

Ah wait, I also found a bug in 0.9.5.... If you closed TB using the systray icon menu when minimized, TB would still be running in the background. If you start TB again the companion app will be gone and the addon will not work anymore. You can quit TB again with the TB menu. The next time you start TB the addon works again and the companion app is also started again showing the systray icon.

giwrgosmant commented 10 months ago

Did you install the correct version of SysTray-X? You are using TB 64bit and you need to install the 64bit version of SysTray-X. If you install the 32bit version it will only work with TB 32bit. TB 64bit will show the addon but will not start the companion app and the close button will do nothing. The 64bit version of SysTray-X will work with both TB 32bit and 64bit.

Tested again with 0.9.5 and the latest git, no problems found.

Hi, I sent you a screen record video with the process and the issue in your email: ximi.github@gmail.com I hope it's the right one. Please take a look to understand the issue :/ TB is 64bit and also the Systray.exe I used is 64bit. (As always)

Ximi1970 commented 10 months ago

Thank you for the video. Looks like the companion app is just not started by TB. Are there any error messages in the TB debug console? Or maybe in the Windows Event Viewer? Could you post the output also?

Tools -> Developer Tools -> "Click Ok on the hidden incoming connection dialog" -> Tab "Console" (Do not know the Greek translations for these...)

Please feel free to remove the items that are private.

I will install the Greek version of Windows 11 en try to remember my ancient Greek lessons again :-) (or use the Translate app on my phone, maybe easier after so many years...) Maybe something breaks in the communication between TB and the companion app when using the Greek character set....

giwrgosmant commented 10 months ago

Thank you for the video. Looks like the companion app is just not started by TB. Are there any error messages in the TB debug console? Or maybe in the Windows Event Viewer? Could you post the output also?

Tools -> Developer Tools -> "Click Ok on the hidden incoming connection dialog" -> Tab "Console" (Do not know the Greek translations for these...)

Please feel free to remove the items that are private.

I will install the Greek version of Windows 11 en try to remember my ancient Greek lessons again :-) (or use the Translate app on my phone, maybe easier after so many years...) Maybe something breaks in the communication between TB and the companion app when using the Greek character set....

Hehe, I sent you again an email with attachments screenshots from Tools -> Developer Tools -> "Click Ok on the hidden incoming connection dialog" -> Tab "Console" as you asked me. (I didn't had time to hide private items that's why I send you an email, sorry ^^) Indeed seems it has some issues with systray extension and registry?, take a look and let me know if you determinate the issue. Thanks :)

Ximi1970 commented 10 months ago

Tested with the greek version of Windows 11. Still (almost) no problems. Only the translations of the companion app seem not to work. Will put it on the bug list. Still need to check you email.

Ximi1970 commented 10 months ago

Read your mail and there is the culprit :-) There is still an old registry entry of SysTray-X due to a bug in the old 0.9.3 installer. You need to manually remove the registry entry with regedit.exe. BE CAREFULL USING THE REG EDITOR.

Find: HKEY_CURRENT_USER\Software\Mozilla\NativeMessagingHosts\SysTray_X

And delete only the SysTray_X key from the NativeMessagingHosts key.

You can now install the new version.

giwrgosmant commented 10 months ago

Read your mail and there is the culprit :-) There is still an old registry entry of SysTray-X due to a bug in the old 0.9.3 installer. You need to manually remove the registry entry with regedit.exe. BE CAREFULL USING THE REG EDITOR.

Find: HKEY_CURRENT_USER\Software\Mozilla\NativeMessagingHosts\SysTray_X

And delete only the SysTray_X key from the NativeMessagingHosts key.

You can now install the new version.

Thank you very much!!! This fixed the issue. 👍 I looked at the registry before but I didn't inside the Mozilla folder. Just the icon on tray is kinda small. Thanks again, I will close the issue! :)