TBTray is an open source program that minimizes Thunderbird to the system tray
A few months ago, I told you about a neat little program called ThunderBirdTray. It's an application that minimizes Thunderbird to the system tray instead of closing it completely with the help of an optional web extension.
I mentioned a similar program called TBTray in that article, and that's what we'll be taking a look at today.
Funtionally, TBTray and ThunderBirdTray are identical. However, the advantage of the former is that you don't need to install the "Minimize on Close" extension to get it working. While that's a plus, there is a caveat though, you'll need to tinker with an advanced option in Thunderbird for TBTray to work. That's the only drawback.
How to set up TBTray
TBTray is a portable application. Extract it to any folder (not the Thunderbird location).Â The program comes in both 32-bit and 64-bit versions. Depending on your version of Thunderbird, open the corresponding folder, and run the TBTray.exe in it. And you'll need Microsoft Visual C++ Redistributable 2015, also in the same bit-ness as your computer, for the program to work.
You won't see the TBTray tray icon, not yet. To verify that it's running open the Task Manager and click on the Details tab. You should see TBTray.exe listed there among other processes. Next, you'll need to open Thunderbird. Hit the menu and go to the Options > Advanced > General section. Click on the Config Editor button. Accept the warning, it's similar to Firefox's about:config page. Paste the following textÂ in the search field:
Set the boolean value of this property to False.
Now, try clicking on the mail client's close button. It should minimize to the system tray. TBTray uses Thunderbird's icon. That wasn't a very complex process, was it?
You may left-click on the tray icon to switch to Thunderbird. Or right click on it and select "Restore Thunderbird". When the mail program is opened (maximized), the tray icon disappears. That's a bit odd, but you'll probably get used to it like I did.
To exit the application, you can use the tray icon's context menu, or just quit Thunderbird from the File > Exit option. Do note that exiting Thunderbird does not close TBTray's process. But it uses very little memory, you may not even notice it running in the background.
There are no other settings to tinker with in TBTray, the process of editing the advanced option in the mail client, is a one time thing. But, what if you don't want to be starting the program every time? That's fine, you can set it to auto start with Windows. To do so, create a shortcut for it and place it in the following folder.
And just FYI, you can do the same for Thunderbird.
If you want to remove TBTray, just delete the shortcut from the Startup folder, and the folder that you extracted the application to.
Note: According to the developer, this is the reason why we need to edit the option in Thunderbird.
TBTray intercepts some window messages sent to Thunderbird, rejecting window minimize and close events and instead hiding the window and creating a tray icon. To do this, TBTray checks for the presence of the Thunderbird main window, and if it finds the window, injects a library into the Thunderbird process to hook into the message queue.
TBTray is an open source program. It's nice to have a quick close option thanks to the context menu as opposed to using the File menu (Thunderbird Tray + Minimize on close).