[Users] [Bug 3922] minimize to tray on startup not working

noreply at thewildbeast.co.uk noreply at thewildbeast.co.uk
Mon Jun 22 16:00:32 CEST 2020


https://www.thewildbeast.co.uk/claws-mail/bugzilla/show_bug.cgi?id=3922

Holger Berndt <hb at claws-mail.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|major                       |normal

--- Comment #19 from Holger Berndt <hb at claws-mail.org> ---
Actually, I'm afraid it won't get any more "proper" than adding some kind of
delay during startup (except if you're fixing it in your DE directly).

Basically, what happens is the following: On startup, the plugin registers the
trayicon, and then hides the main window if the corresponding preference is
set.

However, there's a safety net: If the application startup is completed, and the
tray icon is still not visible, then the main window is shown again. My strong
guess is that this happens for you.

This is done because there is no way that Claws-Mail can guarantee that the
trayicon will actually ever be shown. Your IDE might not even have a system
tray area! Then, if the main window was hidden, how would you get access to it
without a tray icon? Right - you can't. You're locked out with no (obvious) way
to ever get your main window back - not even by killing the application and
starting it again. It's pretty obvious that this is not desirable, therefore
the safety net. That's not a bug, that's a feature.

So, if duing the logon in your DE, Claws-Mail is racing against the loading of
the tray area and wins the race, you're hitting this issue.

Since you're for proper fixes, I recommend asking the DE-developers to load the
tray area and other infrastructure before applications.

Otherwise, there's only the chance of a workaround using  be some kind of delay
- be it in the autostart, or in the plugin.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Users mailing list