minimizetotray

If you received an error that contains "Cannot find object dir in
$topobjdir:", most likely, you didn't specify the objdir
correctly. Please check to make sure the objdir in the above
command matches the one specified in the .mozconfig file.

How
do I minimize Mozilla Firefox or Thunderbird to the tray?Multiple ways exist for
minimizing Firefox and Thunderbird to the tray. You can use whatever
works best
for you. The most common method is to right-mouse click on the minimize
button in the top right hand corner
of the window. Or you can select from the menu File->Minimize to
Tray. Or you can use the keyboard shortcut for Firefox,
Ctrl+Shift+M. If you want to always have Firefox and Thunderbird
minimized to the tray instead of the
taskbar, select that checkbox in the extension's options. If you want
to minimize all open Firefox windows,
middle click on the minimize button, (or CTRL+right-mouse click for
those without middle buttons).

First, right mouse click on the Start button and select Properties.
This will open a Taskbar and Start Menu Properties window.

At the top, make sure you are in the Taskbar tab. Check the checkbox
labeled "Hide inactive icons" and then click "Customize".

Find your Mozilla application, either in Current Items or Past Items,
and set the Behavior to "Always show". Mozilla Thunderbird users will
probably also want to set the new mail indicator icon to "Always show"
as well (although Windows sometimes seems to forget about that setting
for the new mail icon, so it has to be set again a few times before it
holds). Now click both OK buttons to get about of both windows, and
that's it!

The next version should contain these languages which we already have
translations for:

If any of these languages are not working for you, or you think the
translation is wrong, please email
us.
If you would like this extension translated into another language,
please
see the section on Language
Translation.

For now, a good tool for tray minimizing on Linux is KDocker.
It works for all NET WM compliant window managers, including KDE,
GNOME, Xfce and many more.

Will
Mozilla Sunbird/Calendar ever be supported?Both are supprted! Calendar will
automatically be
supported if it is installed alongside MinimizeToTray. The
current 0.2 version of Sunbird does not have extension support, but the
new version under development does. We have already tested
this
extension with new Sunbird builds.

If you need to minimize the current 0.2 version of Sunbird to the tray,
you can download and use this small program called SunTray.

Does
this extension support the Mozilla Suite (Seamonkey)?Everything in
MinimizeToTray works in the Mozilla Suite with the exception of tray
icon menus. Also, when Mozilla loads for the first time after
the
extension has been installed, an error message appears. After
that, the error message goes away.

However, if you really want to change the icon, there is a way. For
example, lets say the Thunderbird icon really really bugs you. Perhaps
you just don't like it. Or perhaps it look too much like
a blue whig over an envelope instead of a blue bird over an envelope.
And this bugs you so much, that you want to change it to an envelope
icon instead.
If so, you can manually change the icon by following these steps:
1. Go to the Mozilla Application folder (such as C:\Program
Files\Mozilla Firefox\ or C:\Program Files\Mozilla Thunderbird\)
2. Go to folder: chrome\icons\default
3. Replace messengerWindow.ico with an icon of your choice.
If you want, you can use this envelope
icon file.

What
are some other requests for this extension?Some other requests
we've received are:
* More powerful context tray menus for Thunderbird. Mostly it revolves
around being able to use all of Thunderbird's functionality while
always keeping it minimized. A variation of this is the ability to
hover over the Thunderbird icon and see how many messages are in an
inbox.
* Include an option to automatically add Firefox or Thunderbird to the
list of programs Windows loads on startup.
* Have an option to set -turbo mode as an extension option, rather than
just a command line parameter.
* Have a checkbox option that reads "Always display tray icon even if
not minimized". This will probably get implemented with
-turbo mode.
* Force the tray icon to always show. This can already be set
manually as described here.
* Have an option to change the shortcut keys involved with this
extension.
* Add the ability for shortcut keys to restore
the Mozilla appliation from the tray.
* Add the ability to change profiles from the tray icon menu.
* Have the extension ask for a password before it can be restored
again. This would be particularly helpful in preventing others from
accessing emails from Thunderbird.
* Have the Mozilla application still show up in the Alt+Tab list even
though the window has been minimized. (Note: this is probably not
possible).
* Have an option to prevent a new Firefox window from opening when one
was already minimized. If the Firefox icon is clicked, it would simply
restore your current minimized window.

First, to determine if there is a bug, the Javascript Console will
inform you if something went wrong. Click on Tools->Javascript
Console,
and when the window opens, click on the Clear button. With that window
open try to minimize your Mozilla application. If there's a problem
the Javascript Console will show it. If you see a JavaScript Console
error, please go to the section I receive
a JavaScript
Console error
whenever I attempt to minimize the application.

Second, if no bug was detected, and the problem doesn't seem to match
anything else found in this FAQ, then most likely, it wasn't installed
right or some strange glitch happened. If so, you may want to uninstall
and start over. If the problem
still
persists, you may want to try the full
blown manual
uninstall and reinstall.

Most likely, this is due to having a conflict between trunk and aviary
builds. If you were running on a normal version of a Mozilla
app,
and then you downloaded and ran a trunk/nightly build, this error
can pop up. In this scenario, simply uninstall the
extension, and redownload the correct extension for the Mozilla build
you are using.

This error can also occur just after uninstalling. If
so, just
ignore it, this should be the only time this error message will be
displayed.

First, uninstall the extension in your Mozilla application. Restart the
application, go to Tools->Extensions, and verify that it's gone.
When you have verified this, close down the application.

Next, delete out the extension's folder manually. The extension folder
is located in your profile's folder. On most Windows computers, it's
located
in the following path:
C:\Documents and Settings\[your Windows login name]\Application
Data\Thunderbird\Profiles\default\[funky profile name]\extensions\
The folder you want to delete is {31513E58-F253-47ad-86DB-D5F21E905429}

After you've deleted that folder, see if there is a Temp folder in
there. If so, delete it.

I
think I found a bug, what do I do now?If nothing else, report
it. But, please be kind to us and investigate the bug before emailing
us. Check to see if we haven't yet made
mention of the bug in our list
of bugs.
Also, carefully observe the behavior of the bug many times so you are
sure you have a handle on what's going on.
When you send a bug report, carefully describe the steps you took to
produce the bug, the unexpected behavior it caused,
and what should have happened if the extension worked correctly.

One great way to investigate is through the Javascript Console. Click
on Tools->Javascript Console, and when the window comes up,
click on Clear.
Then, go to your Mozilla application, and duplicate the bug. If
anything appears in the Javascript Console, that's pay dirt for us.

Another way to investigate is to try to duplicate the bug on another
computer. If it can be duplicated on more than one computer,
then it's likely we will be able to duplicate it as well.

Again, if this is too complicated or confusing, just report what you
can. Please send any bug reports to the project
mailing list.

Once you have built a Mozilla app (in my case, the trunk source for
Firefox), then you've done 90% of the work. The rest is
relatively easy and quick.

Now you can start building the .dll file. (In this example,
I
downloaded the Firefox source to
C:\MOZILLA\mozilla-src-firefox-trunk\. I also had my
minimizetotray files in c:\Mozilla\minimizetotray\.)

Run this from a command prompt: (Path varies according to
where
the Mozilla source is and where the MnimizeToTray source is.
Also, if you do not have the needed junction.exe, you'll need to
download it first.)
junction
C:\MOZILLA\mozilla-src-firefox-trunk\mozilla\extensions\minimizetotray
C:\MOZILLA\minimizetotray\src\minimizetotray

Run this command from the minimizetotray\src\minimizetotray\build\
directory. (You will need to modify the pathnames for
your Mozilla source, and put a "trunk" or an "aviary" according to
what mozilla app you are building it with.):
perl make.pl -V 0.0.1 -t
/cygdrive/C/MOZILLA/mozilla-src-firefox-trunk/mozilla -o
/cygdrive/C/MOZILLA/mozilla-src-firefox-trunk/mozilla/obj-i686-pc-cygwin
-s trunk

If it appeared to work, go check the
minimizetotray\src\minimizetotray\obj
directory. You should have a .dll in there. If you
received
an
error that contains "Cannot find object dir in $topobjdir:", most
likely, you
didn't specify the objdir correctly. Please check to make sure the
objdir in
the above command matches the one specified in the .mozconfig file.

Go back to the minimizetotray\src\minimizetotray\build\
folder.
Run this command: (Again, put a "trunk" or a "aviary" according to what
mozilla app you are building it with. Also, package.pl will
check
for the first .dll it finds in the obj directory, so if you have built
before, and you have more than one .dll in there, you'll need to clear
out the unwanted ones.):
perl package.pl -V 0.0.1 -s trunk

Packaging the
.xpi file if you
do not want to build the .dll:

In order to run the package script, you will need to be able to run
perl from the command line. If you do not have it, you can
download it with Cygwin. Cygwin installs the perl
package by
default. If not, you can find more about it here: http://www.mozilla.org/build/win32.html.