nmaier / mintrayr

Mozilla extension: Minimize windows into the system tray (Firefox, Thunderbird, Seamonkey, Instantbird)
https://tn123.org/mintrayr/
Mozilla Public License 2.0
84 stars 37 forks source link

Request: Minimize automatically when application starts #154

Open mdavis-xyz opened 8 years ago

mdavis-xyz commented 8 years ago

I have Thunderbird set to start on boot. Every time I boot, it starts as a full window, and I need to minimize it manually.

I would love for there to be an option in the addon's preferences to minimize the window to the tray when the application starts.

nabsltd commented 7 years ago

This functionality is already supported...all you need to do is start Thunderbird minimized using your shell. For Windows, this means changing the shortcut to "Run: Minimized". For Linux, it depends on the desktop manager.

tbertels commented 7 years ago

Just tested it on Windows 7: it doesn't work here.

nabsltd commented 7 years ago

As long as "Use for Messenger Windows" is enabled, it works fine for me, at least starting from a shortcut on the menu.

When loading Windows, it might not work because of timing...if the task bar and tray haven't completed initialization when Thunderbird starts, the minimize or "show in tray" messages might get lost. This will be a problem for the add-on as well.

Cyberchicken commented 6 years ago

I suspect it's more involved than than. Windows apps most of the times don't honor that execution flag and the workarounds are subtle and not entirely satifactory (http://forums.mozillazine.org/viewtopic.php?t=412663 ie: TB honors "start minimized" only if last (saved) windows state was not "maximized").

I came here to suggest a change the options of mintrayr: in "Minimize to tray" we could have 3 checkboxes instead of radio buttons plus a note: [ ] At startup [ ] When minimizing [ ] Instead of closing (Menu and button are alway available)

Also "Click Behaviour" could be "Tray Icon Click Behaviour"

Thank you