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
217 stars 14 forks source link

0.3.0 does not start minimized #30

Closed lgbaldoni closed 4 years ago

lgbaldoni commented 4 years ago

Using rpm from home:Ximi1970:Mozilla:Add-ons/systray-x on Leap 15.1 and KDE.

Ximi1970 commented 4 years ago

Using the default TB of 15.1, I can not replicate your problem using the same repo. Did you select in preferences the "Start application minimized" option and clicked "Ok"/"Save"?

I did a logout and login and TB started minimized. Also from the command line it starts miniminized.

lgbaldoni commented 4 years ago

This is my configuration: systray_cfg

I tried to log out and to launch from the command line, but neither made a difference. How could I debug this? Or perhaps I should test 15.2 ?

Ximi1970 commented 4 years ago

Preferences look fine. Just a bit amazed you need to set 16 for number size.

It works just fine for me (clean, updated 15.1 with default KDE and TB). Did you ever experiment with the special window settings for TB that can be found under the TB icon on the title bar (More actions-> Special window or special application settings) to override default window behavior? Or do you have another tool running to manipulate window behavior?

The minimize on start is an internal TB javascript function that just should work standalone (even if the SysTray-X Qt app is not starting for whatever reason) For that function not to work, you need to have a non standard TB startup I have not encountered yet. (default is the "3pane" Mail view (left the accounts, top right mail headers, bottom right empty/selected mail)

You can always try 15.2 of course.

lgbaldoni commented 4 years ago

Update: I tried plain 15.2 with a fresh profile and everything worked. I then migrated my profile and the problem came up again. It appears to be related to the folder account extension.

Also I've noticed that the application does not restart minimised in any case: is this to be expected?

Ximi1970 commented 4 years ago

Ah thank you for investigating further. I will have a look at that add-on and hopefully find out what is happening in this case.

Ximi1970 commented 4 years ago

Also I've noticed that the application does not restart minimised in any case: is this to be expected?

You need to be more specific. It is working in your first line of your comment and then it is never working in the last line??

To be hopefully clear:

If the start minimized option is checked, the addon will try to minimize TB as soon as possible.

Keep in mind that I do not have (yet?) a direct API to the minimize function of TB, so there will always be a delay in the minimizing. This can sometimes cause TB to startup normally on startup and as soon as the addon is started by TB the addon will minimize the window.

See also the FAQ.txt

lgbaldoni commented 4 years ago

You need to be more specific. It is working in your first line of your comment and then it is never working in the last line??

Even when start minimised works, if I e.g. disable an extension and click on the internal restart link, thunderbird won't be minimised. I have to quit and start manually if I want that.

Ximi1970 commented 4 years ago

I do not have many plugins running. Only enigmail, exquilla, lighting, manual sort folders, systray-x and the old (incompatible/disabled) firetray. With these everything is running just fine. I will have a look at the folder account add-on you mentioned.

Do you have any other add-ons installed?

lgbaldoni commented 4 years ago

CompactHeader, Folder Account, Lightning, Manually sort folders, Systray-X and likewise the old firetray (disabled).

Ximi1970 commented 4 years ago

I think this is a problem how TB is handling legacy plugins (like exquilla and folder-account) and web extension plugins (like systray-x). Found a solution to force a minimize by the addon app. Strangely enough the problem is only when starting TB from the menu or command line. If it is started due to a session login everything seems fine.
So TB will start normally now but is minimized by the addon app as soon as it is started. So TB is shortly not minimized. You will see it "flashing" by.
Be aware that as soon TB 78 is released, all legacy plugins will not work anymore (and the problem should be solved). So no more folder-account, exquilla etc....

Currently only in the feature-multiwin branch. Hopefully I have time to clean and test the branch next few days en make a new release.

Ximi1970 commented 4 years ago

Included in 0.4.0